This repository has been archived by the owner on Sep 15, 2023. It is now read-only.
forked from mobilecoinfoundation/mobilecoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
137 lines (128 loc) · 4.08 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
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/test-utils",
"crypto/digestible/derive/test",
"crypto/keys",
"crypto/noise",
"crypto/rand",
"crypto/message-cipher",
"enclave-boundary",
"ledger/db",
"ledger/distribution",
"ledger/from-archive",
"ledger/migration",
"ledger/sync",
"mobilecoind",
"mobilecoind-json",
"mobilecoind/api",
"peers",
"peers/test-utils",
"sgx/backtrace-edl",
"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",
"testnet-client",
"transaction/core",
"transaction/core/test-utils",
"transaction/std",
"util/b58-payloads",
"util/build/enclave",
"util/build/grpc",
"util/build/bolt-signalapp",
"util/build/sgx",
"util/build/script",
"util/encodings",
"util/from-random",
"util/generate-sample-ledger",
"util/grpc",
"util/host-cert",
"util/keyfile",
"util/lmdb",
"util/logger-macros",
"util/metered-channel",
"util/metrics",
"util/repr-bytes",
"util/serial",
"util/test-helper",
"util/uri",
"util/url-encoding",
"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]
# 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 = "e00f5f16e395349c2c2395aac9287da0ac843a73" }