-
Notifications
You must be signed in to change notification settings - Fork 148
/
Cargo.toml
123 lines (111 loc) · 3.86 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[profile.release]
panic = "abort"
opt-level = 3
# make sure dev builds with backtrace do
# not slow us down
[profile.dev.package.backtrace]
inherits = "release"
[profile.production]
inherits = "release"
lto = true
codegen-units = 1
[profile.testnet]
inherits = "release"
debug = 1 # debug symbols are useful for profilers
debug-assertions = true
overflow-checks = true
[workspace]
resolver = "2"
metadata.dylint.libraries = [
{ git = "https://github.com/Phala-Network/dylint-rules.git", pattern = "rules/*" },
]
exclude = [
"subxt",
"standalone/pruntime",
"standalone/prouter",
"standalone/crate-version",
"crates/pink-drivers/system",
"crates/pink-drivers/sidevm_deployer",
"crates/pink-drivers/tokenomic",
"e2e/contracts",
]
members = [
"standalone/executor",
"standalone/rpc",
"standalone/node",
"standalone/runtime",
"standalone/pherry",
"standalone/prb",
"standalone/replay",
"standalone/headers-cache",
"standalone/justification-validate",
"standalone/sfq-test",
"standalone/phat-poller",
"crates/phala-trie-storage",
"crates/phala-mq",
"crates/phala-crypto",
"crates/phala-node-rpc-ext",
"crates/phala-types",
"crates/phala-git-revision",
"crates/prpc",
"crates/prpc-build",
"crates/phactory",
"crates/phactory/api",
"crates/phactory/pal",
"crates/phala-types",
"crates/phala-async-executor",
"crates/phala-allocator",
"crates/phala-sanitized-logger",
"crates/phala-wasm-checker",
"crates/phala-clap-parsers",
"crates/phala-wasmer-tunables",
"crates/phala-rocket-middleware",
"crates/pink/loader",
"crates/pink/runtime",
"crates/pink/capi",
"crates/pink/macro",
"crates/pink/pink-types",
"crates/pink/pink",
"crates/pink/chain-extension",
"crates/pink-libs/s3",
"crates/pink-libs/utils",
"crates/pink-libs/subrpc",
"crates/pink-libs/kv-session",
"crates/phaxt",
"crates/pink/pink/macro",
"crates/sidevm/host-runtime",
"crates/sidevm/env",
"crates/sidevm/macro",
"crates/sidevm/sidevm",
"crates/phala-serde-more",
"crates/rustfmt-snippet",
"crates/reqwest-env-proxy",
"crates/phala-scheduler",
"crates/this-crate",
"crates/sgx-attestation",
"crates/type-info-stringify",
"pallets/phala",
"pallets/phala/mq-runtime-api",
"pallets/offchain-rollup",
"scripts/debug-cli"
]
[patch.crates-io]
# TODO.kevin: Move back to crates.io once it released 1.0
derive_more = { version = "0.99.17", git = "https://github.com/JelteF/derive_more" }
ring = { git = "https://github.com/jasl/ring-xous", branch = "better-wasm32-support" }
sp-core = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.5.0" }
sp-core-hashing = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.5.0" }
sp-std = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.5.0" }
sp-runtime-interface = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.5.0" }
# For pink-chain-extension, it will introduce Substrate from crates-io which usually different with polkadot-branch
pink = { path = "crates/pink/pink" }
pink-chain-extension = { path = "crates/pink/chain-extension" }
# The substrate dependencies use old version of crypto crates. Some of them, listed below, hard require subtle=v2.4
# but latest rustls requires subtle v2.5 which cause it conflict. Ideally, substrate should upgrade it's dependencies
# to latest version.
# Here we patch the old crates to use subtle v2.5 as a workaround.
aes-gcm = { git = "https://github.com/kvinwang/AEADs.git", branch = "subtle-v2.5"}
crypto-mac = { git = "https://github.com/kvinwang/rust-crypto-traits.git", branch = "subtle-v2.5" }
universal-hash = { git = "https://github.com/kvinwang/rust-crypto-traits.git", branch = "subtle-v2.5" }
[patch."https://github.com/paritytech/polkadot-sdk.git"]
sc-consensus-grandpa = { git = "https://github.com/Phala-Network/polkadot-sdk.git", branch = "phala-patch-polkadot-v1.5.0" }