forked from stellar/rs-soroban-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
71 lines (65 loc) · 2.85 KB
/
Cargo.toml
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
65
66
67
68
69
70
71
[workspace]
resolver = "2"
members = [
"soroban-sdk",
"soroban-sdk-auth",
"soroban-spec",
"tests/empty",
"tests/hello",
"tests/add_i32",
"tests/add_i64",
"tests/add_bigint",
"tests/vec",
"tests/import_contract",
"tests/invoke_contract",
"tests/udt",
"tests/contract_data",
"tests/create_contract",
]
exclude = [
# Exclude proc-macro crates from the workspace so that when building the
# workspace their dependencies do not pollute the feature selection of other
# crates. Ordinarily when you build a proc-macro crate as a dependency of
# another crate, the proc-macro crate's dependencies are decoupled from the
# dependencies of other crates. This has an important side-effect of not
# unifiying the features selected in shared dependencies. When a proc-macro
# crate is part of a workspace and the workspace as a whole is built the
# proc-macro is seen as a first-class crate and its dependencies, including
# their feature selection, affects the overall dependency graph used to build
# all crates. This has an unfortunate side-effect for proc-macro crates, like
# 'macros', that depend on std features when other crates, like 'sdk',
# explicitly must not depend on std. Hopefully one day this will be fixed in:
# https://github.com/rust-lang/cargo/issues/10827
"soroban-sdk-macros",
# Exclude crates that are not intended for building on the wasm32 target, so
# that the majority of cargo-hack usage won't trigger builds on these crates
# in isolation, but these crates will still be built when the SDK gets built
# because they're named as a dependency.
"soroban-spec",
]
[patch.crates-io]
soroban-sdk = { path = "soroban-sdk" }
soroban-sdk-auth = { path = "soroban-sdk-auth" }
soroban-sdk-macros = { path = "soroban-sdk-macros" }
soroban-env-common = { git = "https://github.com/stellar/rs-soroban-env", rev = "b94bbb7" }
soroban-env-guest = { git = "https://github.com/stellar/rs-soroban-env", rev = "b94bbb7" }
soroban-env-host = { git = "https://github.com/stellar/rs-soroban-env", rev = "b94bbb7" }
soroban-env-macros = { git = "https://github.com/stellar/rs-soroban-env", rev = "b94bbb7" }
soroban-native-sdk-macros = { git = "https://github.com/stellar/rs-soroban-env", rev = "b94bbb7" }
stellar-xdr = { git = "https://github.com/stellar/rs-stellar-xdr", rev = "332736c" }
# soroban-env-common = { path = "../rs-soroban-env/soroban-env-common" }
# soroban-env-guest = { path = "../rs-soroban-env/soroban-env-guest" }
# soroban-env-host = { path = "../rs-soroban-env/soroban-env-host" }
# soroban-env-macros = { path = "../rs-soroban-env/soroban-env-macros" }
[profile.dev]
overflow-checks = true
panic = "abort"
[profile.release]
opt-level = "z"
overflow-checks = true
debug = 0
strip = "symbols"
debug-assertions = false
panic = "abort"
codegen-units = 1
lto = true