-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
135 lines (125 loc) · 3.35 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
[workspace]
resolver = "2"
exclude = ["examples/rust"]
members = [
"api/test",
"tools/update_trusted_blocks",
"tvm_abi",
"tvm_api",
"tvm_assembler",
"tvm_block",
"tvm_block_json",
"tvm_cli",
"tvm_client",
"tvm_client_processing",
"tvm_common",
"tvm_debugger",
"tvm_executor",
"tvm_sdk",
"tvm_struct",
"tvm_tl_codegen",
"tvm_types",
"tvm_vm",
"tvm_tests"
]
[workspace.package]
version = "2.3.1"
rust-version = "1.76.0"
authors = ["TVM Labs <hello@tvmlabs.io>"]
repository = "https://github.com/tvmlabs/tvm-sdk"
edition = "2021"
license = "GPL-3.0"
[workspace.lints.rust]
# aim to have fmt::Debug implemented for all our public types
missing_debug_implementations = "warn"
[profile.profiling]
debug = 1
inherits = 'release'
[profile.dev]
# Must always use panic = "abort" to avoid needing to define the unstable eh_personality lang item.
panic = "abort"
# Enable only a small amount of optimization in debug mode
opt-level = 1
# Enable high optimizations for dependencies, but not for our code:
[profile.dev.package."*"]
opt-level = 3
[profile.release]
opt-level = "z" # Optimize for size.
lto = true # Enable Link Time Optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
panic = "abort" # Abort on panic
strip = true # Automatically strip symbols from the binary.
[profile.test]
# IMPORTANT! because with "abort" it will complain https://github.com/rust-lang/cargo/issues/6313
panic = "unwind"
[workspace.dependencies]
aes-ctr = "0.6.0"
anyhow = "1.0.79"
async-trait = "0.1.77"
base64 = "0.21.7"
blst = "0.3.11"
byteorder = "1.5.0"
chrono = "0.4"
clap = { version = "4.4", features = ["derive"] }
crc = "3.0.1"
curve25519-dalek = "4.1.1"
diffy = "0.3.0"
dirs = "5.0.1"
ed25519 = "2.2.3"
ed25519-dalek = "2.1.0"
external-ip = "4.2.0"
extfmt = "0.1.1"
failure = "0.1.8"
futures = "0.3"
hex = "0.4.3"
hex-literal = "0.4.1"
json5 = "0.4.1"
lazy_static = "1.4.0"
lockfree = { git = "https://github.com/tvmlabs/lockfree" }
log = "0.4.20"
lru = "0.12.3"
metrics = "0.22"
num = "0.4.1"
num-bigint = "0.4.4"
num-derive = "0.4.1"
num-traits = "0.2.17"
ordered-float = "4.2.0"
proc-macro2 = "1.0.78"
quote = "1.0.35"
rand = "0.8.5"
regex = "1.10.3"
reqwest = { version = "0.11.24", default-features = false, features = [
"rustls-tls-webpki-roots",
] }
secstr = "0.5.1"
serde = "1.0.197"
serde_derive = "1.0.197"
serde_json = "1.0.114"
serde_repr = "0.1.18"
sha2 = "0.10.8"
similar = "2.4.0"
smallvec = "1.13.1"
thiserror = "1.0.56"
tokio = { default-features = false, version = "1.36.0" }
tokio-stream = "0.1.14"
x25519-dalek = "2.0.0"
zstd = "0.13.0"
#
tvm_abi = { path = "./tvm_abi" }
tvm_api = { path = "./tvm_api" }
tvm_assembler = { path = "./tvm_assembler" }
tvm_block = { path = "./tvm_block" }
tvm_block_json = { path = "./tvm_block_json" }
tvm_cli = { path = "./tvm_cli" }
tvm_client = { path = "./tvm_client", default-features = false }
tvm_client_processing = { path = "./tvm_client_processing" }
tvm_common = { path = "./tvm_common" }
tvm_debugger = { path = "./tvm_debugger" }
tvm_executor = { path = "./tvm_executor" }
tvm_sdk = { path = "./tvm_sdk" }
tvm_struct = { path = "./tvm_struct" }
tvm_types = { path = "./tvm_types" }
tvm_vm = { path = "./tvm_vm" }
[workspace.dependencies.tokio-tungstenite]
# TODO: upgrade when reqwest supports http@1, tungstenite 0.20.0 is the last version which uses http@0.2
version = "<0.21.0"