forked from BrainTease/Brain-Storm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
64 lines (59 loc) · 1.89 KB
/
Copy pathCargo.toml
File metadata and controls
64 lines (59 loc) · 1.89 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
60
61
62
63
64
[workspace]
# Resolver 2 keeps dev-dependency features out of non-test builds. Without it a
# workspace-wide `cargo build --target wasm32-unknown-unknown` unifies
# `brain-storm-integration`'s dev-dependency on `brain-storm-shared` (default
# features, i.e. `contract`) into every other contract's copy, re-exporting
# `SharedContract`'s entry points from each contract's wasm.
resolver = "2"
members = [
"contracts/analytics",
"contracts/integration",
"contracts/token",
"contracts/shared",
"contracts/certificate",
"contracts/governance",
"contracts/credential_metadata",
"contracts/reputation",
"contracts/buyback",
"contracts/scholarship_fund",
"contracts/token_restrictions",
"contracts/liquidity_pool",
"contracts/grants",
"contracts/badges",
"contracts/nft",
"contracts/registry",
"contracts/market",
"contracts/dispute",
"contracts/royalty_distribution",
]
[workspace.dependencies]
# Soroban SDK - latest stable
soroban-sdk = "20.0.0"
soroban-cli = "20.0.0"
# Common dependencies
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
anyhow = "1.0"
[profile.release]
opt-level = "z"
overflow-checks = true
lto = true
debug = false
strip = true
codegen-units = 1
panic = "abort"
[profile.dev]
opt-level = 0
debug = true
overflow-checks = true
# ── Code-quality enforcement ──────────────────────────────────────────────────
# rustfmt is configured via rustfmt.toml at the workspace root.
# Enforce in CI with: cargo fmt --all -- --check
# Format locally with: cargo fmt --all
#
# clippy is configured via clippy.toml at the workspace root.
# Enforce in CI with: cargo clippy --workspace -- -D warnings
[workspace.metadata.fmt]
check_command = "cargo fmt --all -- --check"
format_command = "cargo fmt --all"