forked from mobilecoinfoundation/mobilecoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
149 lines (137 loc) · 4.58 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
cargo-features = ["resolver"]
[workspace]
resolver = "2"
members = [
"admin-http-gateway",
"api",
"attest/ake",
"attest/api",
"attest/core",
"attest/net",
"attest/trusted",
"attest/untrusted",
"common",
"connection",
"connection/test-utils",
"consensus/api",
"consensus/enclave",
"consensus/enclave/api",
"consensus/enclave/edl",
"consensus/enclave/impl",
"consensus/enclave/measurement",
"consensus/enclave/mock",
"consensus/scp",
"consensus/scp/play",
"consensus/service",
"crypto/box",
"crypto/digestible",
"crypto/digestible/derive/test",
"crypto/digestible/test-utils",
"crypto/keys",
"crypto/message-cipher",
"crypto/noise",
"crypto/rand",
"enclave-boundary",
"fog/api",
"fog/report/connection",
"fog/report/validation",
"ledger/db",
"ledger/distribution",
"ledger/from-archive",
"ledger/migration",
"ledger/sync",
"mobilecoind",
"mobilecoind-json",
"mobilecoind/api",
"peers",
"peers/test-utils",
"sgx/compat-edl",
"sgx/core-types",
"sgx/core-types-sys",
"sgx/css",
"sgx/debug-edl",
"sgx/epid",
"sgx/epid-sys",
"sgx/epid-types",
"sgx/epid-types-sys",
"sgx/ias-types",
"sgx/panic-edl",
"sgx/report-cache/api",
"sgx/report-cache/untrusted",
"sgx/slog-edl",
"sgx/urts-sys",
"test-vectors/account-keys",
"test-vectors/b58-encodings",
"testnet-client",
"transaction/core",
"transaction/core/test-utils",
"transaction/std",
"util/build/bolt-signalapp",
"util/build/enclave",
"util/build/grpc",
"util/build/script",
"util/build/sgx",
"util/encodings",
"util/from-random",
"util/generate-sample-ledger",
"util/grpc",
"util/grpc-admin-tool",
"util/grpc-token-generator",
"util/host-cert",
"util/keyfile",
"util/lmdb",
"util/logger-macros",
"util/metered-channel",
"util/metrics",
"util/repr-bytes",
"util/serial",
"util/test-helper",
"util/test-vector",
"util/uri",
"watcher",
"watcher/api",
]
exclude = [
# mc-util-serial should only be accessed via the `common` crate.
"util/serial",
# N.B. for some reason, putting these crates under `exclude` helps with
# making `cargo test --all` work, when `consensus-enclave-impl` is part of workspace
"sgx",
]
[profile.dev]
opt-level = 0
rpath = true
[profile.release]
opt-level = 3
rpath = false
lto = false
debug-assertions = false
overflow-checks = false
# Skip the need for LD_LIBRARY_PATH in `cargo test`
[profile.test]
rpath = true
[patch.crates-io]
# grpcio patched with metadata
grpcio = { git = "https://github.com/jcape/grpc-rs", rev = "74797d973f0e81555c3c01857ccdbb8092f21f67" }
# prost is patched with no_std support (https://github.com/danburkert/prost/pull/319)
# current revision is from jun 13 2020, waiting for a new prost release
# https://github.com/danburkert/prost/issues/329
prost = { git = "https://github.com/danburkert/prost", rev = "6113789f70b69709820becba4242824b4fb3ffec" }
prost-derive = { git = "https://github.com/danburkert/prost", rev = "6113789f70b69709820becba4242824b4fb3ffec" }
# slog is patched in order to build in no_std config with dynamic_keys feature on
# https://github.com/slog-rs/slog/pull/268
slog = { git = "https://github.com/mobilecoinofficial/slog", rev = "cc1562258b81353426d17a55b7447256fa6eabbf" }
dialoguer = { git = "https://github.com/mitsuhiko/dialoguer", rev = "a0c6c1e" }
console = { git = "https://github.com/mitsuhiko/console", rev = "1307823" }
# Override lmdb-rkv for a necessary bugfix (see https://github.com/mozilla/lmdb-rs/pull/80)
lmdb-rkv = { git = "https://github.com/mozilla/lmdb-rs", rev = "df1c2f5" }
# Fixes the following:
# * Allow enabling `serde/std` without also requiring `serde_cbor/std` to be enabled.
# See: https://github.com/pyfisch/cbor/pull/198
serde_cbor = { git = "https://github.com/mobilecoinofficial/cbor", rev = "4c886a7c1d523aae1ec4aa7386f402cb2f4341b5" }
# Patched to depend on crates that depend on digest 0.9
bulletproofs = { git = "https://github.com/eranrund/bulletproofs", rev = "e8e8ef45ecc6d31f1a9525140edc977351d0f780" }
# Patched to disable the cpuid instruction because that is incompatible with our sgx builds.
cpuid-bool = { git = "https://github.com/eranrund/RustCrypto-utils", rev = "74f8e04e9d18d93fc6d05c72756c236dc88daa19" }
# We need to patch aes-gcm so we can make some fields/functions/structs pub in order to have a constant time decrypt
aes-gcm = { git = "https://github.com/xoloki/AEADs", rev = "d1a8517d3dd867ed9c5794002add67992a42f6aa" }