forked from ASTROIDX556/astroid-contract
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
59 lines (54 loc) · 1.84 KB
/
Copy pathCargo.toml
File metadata and controls
59 lines (54 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Astroid — Smart Contract Workspace (Soroban / Stellar)
#
# The blockchain / trust layer of the Astroid platform: a Financial Operating
# System for autonomous AI agents on Stellar. See PRD Document 7 for the
# authoritative smart-contract architecture.
#
# soroban-sdk is pinned once here (v21.x) and referenced by every member via
# `soroban-sdk = { workspace = true }` so all crates build against one version.
[workspace]
resolver = "2"
members = [
"shared",
"interfaces",
"contracts/registry",
"contracts/wallet",
"contracts/multisig",
"contracts/proposal",
"contracts/treasury",
"contracts/budget",
"contracts/policy",
"contracts/escrow",
]
[workspace.package]
version = "0.1.0"
edition = "2021"
license = "MIT"
authors = ["Astroid <opensource@astroid.dev>"]
repository = "https://github.com/AstroidHQ/astroid-contract"
homepage = "https://astroid.dev"
rust-version = "1.74"
[workspace.dependencies]
# Single, consistent Soroban SDK version for the whole workspace.
soroban-sdk = "21.7.7"
astroid-shared = { path = "shared" }
astroid-interfaces = { path = "interfaces" }
# ---------------------------------------------------------------------------
# Release profile tuned for Soroban Wasm output (small, deterministic, safe).
# overflow-checks stays ON even in release: financial arithmetic must never
# silently wrap. All value math additionally goes through shared::math checked
# helpers that return contract errors instead of panicking.
# ---------------------------------------------------------------------------
[profile.release]
opt-level = "z"
overflow-checks = true
debug = 0
strip = "symbols"
debug-assertions = false
panic = "abort"
codegen-units = 1
lto = true
# Same as release but keeps debug assertions/logs — handy for local Wasm debugging.
[profile.release-with-logs]
inherits = "release"
debug-assertions = true