This repository has been archived by the owner on Oct 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Cargo.toml
90 lines (77 loc) · 2.77 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
[package]
name = "oasis-ethwasi-runtime"
version = "0.3.0"
authors = ["Oasis Labs Inc. <info@oasislabs.com>"]
edition = "2018"
[package.metadata.fortanix-sgx]
heap-size = 134217728
stack-size = 2097152
threads = 2
[[bin]]
name = "oasis-ethwasi-runtime"
path ="bin/main.rs"
[dependencies]
# Internal.
oasis-ethwasi-runtime-api = { path = "./api" }
oasis-ethwasi-runtime-common = { path = "./common" }
oasis-ethwasi-runtime-keymanager = { path = "./keymanager-runtime" }
# Oasis core.
oasis-core-keymanager-client = { git = "https://github.com/oasisprotocol/oasis-core", tag = "v21.0.1" }
oasis-core-runtime = { git = "https://github.com/oasisprotocol/oasis-core", tag = "v21.0.1" }
# Parity.
common-types = { git = "https://github.com/oasislabs/oasis-parity", branch = "ekiden" }
ethcore = { git = "https://github.com/oasislabs/oasis-parity", branch = "ekiden" }
ethkey = { git = "https://github.com/oasislabs/oasis-parity", branch = "ekiden" }
hashdb = { git = "https://github.com/oasislabs/oasis-parity", branch = "ekiden" }
keccak-hash = { git = "https://github.com/oasislabs/oasis-parity", branch = "ekiden" }
ethereum-types = { version = "0.3", default-features = false, features = ["std", "serialize"] }
# Others.
anyhow = "1.0"
byteorder = "1.0"
elastic-array = "0.10"
hex = "0.3"
io-context = "0.2.0"
log = "0.4"
serde_bytes = "0.11"
serde_json = "1.0"
sha3 = "0.6"
slog = "2.4.1"
thiserror = "1.0"
[build-dependencies]
oasis-core-tools = { git = "https://github.com/oasisprotocol/oasis-core", tag = "v21.0.1" }
[dev-dependencies]
assert_matches = "1.3.0"
time = "0.1"
ethabi = "8.0.0"
[features]
default = ["confidential"]
prefetch = []
confidential = []
# Use test feature flag since Rust doesn't support conditional compilation using
# cfg(test) on dependent crates.
test = ["oasis-ethwasi-runtime-common/test"]
benchmarking = ["oasis-ethwasi-runtime-common/benchmarking"]
production-genesis = ["oasis-ethwasi-runtime-common/production-genesis"]
[profile.release]
panic = "abort"
opt-level = 3
lto = true
# temporary fix for incompatibility between jsonrpc and ws-rs
[patch."https://github.com/tomusdrw/ws-rs"]
ws = { git = "https://github.com/oasislabs/ws-rs", branch = "ekiden" }
[patch.crates-io]
# TODO: Remove when merged upstream (briansmith/ring#738).
ring = { git = "https://github.com/oasislabs/ring-sgx", branch = "sgx-target" }
# TODO: Remove when merged upstream (rust-lang-deprecated/rustc-serialize#195).
rustc-serialize = { git = "https://github.com/jethrogb/rustc-serialize", branch = "portability" }
# NOTE: Required because heapsize doesn't work on SGX due to a different allocator.
heapsize = { git = "https://github.com/oasislabs/heapsize", branch = "sgx-target" }
[workspace]
members = [
"api",
"common",
"gateway",
"genesis",
"keymanager-runtime",
]
exclude = ["tests"]