forked from Lilly-Protocol/lily-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
60 lines (54 loc) · 1.75 KB
/
Copy pathCargo.toml
File metadata and controls
60 lines (54 loc) · 1.75 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
[workspace]
resolver = "2"
members = [
"contracts/*",
"crates/*",
]
[workspace.package]
version = "0.1.0"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/lily-protocol/lily-contracts"
homepage = "https://lilyprotocol.com"
authors = ["Lily Protocol Contributors"]
rust-version = "1.85"
# #98: shared publishing metadata inherited by every workspace crate.
keywords = ["soroban", "stellar", "smart-contract", "lily-protocol"]
categories = ["no-std", "external-ffi"]
[workspace.dependencies]
soroban-sdk = "22"
lily-common = { path = "crates/lily-common" }
lily-test-support = { path = "crates/lily-test-support" }
proptest = "1"
[workspace.lints.rust]
unsafe_code = "forbid"
[workspace.lints.clippy]
expect_used = "warn"
panic = "warn"
todo = "warn"
unwrap_used = "warn"
# #124: pedantic group enabled workspace-wide with an explicit allow-list.
pedantic = { level = "warn", priority = -1 }
# Allow-list (documented exceptions):
# - needless_pass_by_value: soroban contract fns conventionally take `env: Env`
# (not `&Env`); the SDK passes it by value into the host function bridge.
needless_pass_by_value = "allow"
# - similar_names: the payer/payee (and *_agent) pairs are deliberate domain
# naming; renaming one half would obscure the intent.
similar_names = "allow"
# - should_panic_without_expc: soroban contract panics carry error enums that
# surface as `Error(Contract, #n)`; coupling tests to that internal rendering
# is brittle, so bare `#[should_panic]` is preferred here.
should_panic_without_expect = "allow"
[profile.release]
opt-level = "z"
overflow-checks = true
debug = 0
strip = "symbols"
debug-assertions = false
panic = "abort"
codegen-units = 1
lto = true
[profile.release-with-logs]
inherits = "release"
debug-assertions = true