forked from o1-labs/mina-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
126 lines (113 loc) · 3.77 KB
/
Cargo.toml
File metadata and controls
126 lines (113 loc) · 3.77 KB
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
[package]
name = "p2p"
version = "0.16.0"
edition = "2021"
license = "Apache-2.0"
[dependencies]
aes-gcm = "0.10.3"
anyhow = "1.0.70"
base64 = "0.22"
binprot = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" }
binprot_derive = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" }
bitflags = { version = "2.4.1", features = ["serde"] }
bs58 = "0.4.0"
bytes = "*"
cfg-if = "1.0.0"
derive_more = "0.99.17"
ed25519-dalek = { version = "2.1.1", features = ["serde", "pem"] }
faster-stun = { version = "1.0.1", optional = true }
hex = { version = "0.4.3" }
multihash = "0.18.1"
rand = { version = "0.8", features = ["small_rng"] }
reqwest = { version = "0.11.22", optional = true }
serde = { workspace = true }
serde_json = { workspace = true }
serde_with = { workspace = true }
sha2 = "0.10.6"
smallvec = "1.10.0"
strum = "0.26"
strum_macros = "0.26"
thiserror = "1.0.37"
unsigned-varint = { version = "0.8.0" }
url = "2.3.1"
x25519-dalek = { version = "2.0.1", features = ["static_secrets"] }
graphannis-malloc_size_of = { workspace = true }
graphannis-malloc_size_of_derive = { workspace = true }
# crypto
blake2 = { version = "0.10.6" }
chacha20poly1305 = { version = "0.10.1" }
curve25519-dalek = { version = "4.1", features = ["legacy_compatibility"] }
hkdf = { version = "0.12.4" }
libp2p-identity = { version = "=0.2.7", features = [
"ed25519",
"rand",
"serde",
] }
multiaddr = { version = "0.18.1" }
zeroize = { version = "1.8" }
mina-p2p-messages = { workspace = true }
redux = { workspace = true }
crypto-bigint = { version = "0.5.5", features = [
"generic-array",
"serde",
"alloc",
] }
openmina-core = { path = "../core" }
openmina-macros = { path = "../macros" }
quick-protobuf = "0.8.1"
salsa-simple = { path = "../tools/salsa-simple" }
prost = { version = "0.12.4" }
openmina-fuzzer = { path = "../fuzzer", optional = true }
[build-dependencies]
prost-build = { version = "0.14.1" }
[dev-dependencies]
crypto-bigint = { version = "0.5.5", features = ["rand_core"] }
warp = "0.3.6"
tokio = { version = "1.26", features = ["macros", "rt-multi-thread"] }
clap = { version = "4.5.2", features = ["derive", "env"] }
p2p-testing = { path = "testing" }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
redux = { workspace = true, features = ["serializable_callbacks"] }
tokio = { version = "1.26", features = ["rt"] }
webrtc = { git = "https://github.com/openmina/webrtc.git", rev = "aeaa62682b97f6984627bedd6e6811fe17af18eb", optional = true }
datachannel = { git = "https://github.com/openmina/datachannel-rs.git", rev = "1bfb064d0ff3e54a93ae0288409902aab8d102d3", optional = true, features = [
"vendored",
] }
rcgen = { version = "0.13", features = ["pem", "x509-parser"], optional = true }
reqwest = { version = "0.11", features = ["json"] }
mio = { version = "1.0.3", features = ["os-poll", "net"] }
libc = { version = "0.2.151" }
local-ip-address = "0.6.1"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
gloo-timers = { version = "0.3", features = ["futures"] }
gloo-utils = "0.2"
js-sys = "0.3.64"
web-sys = { version = "0.3", features = [
"MessageEvent",
"RtcPeerConnection",
"RtcConfiguration",
"RtcIceTransportPolicy",
"RtcDataChannel",
"RtcDataChannelInit",
"RtcSessionDescription",
"RtcSessionDescriptionInit",
"RtcSdpType",
"RtcPeerConnectionState",
"RtcIceGatheringState",
"Window",
"Request",
"RequestInit",
"Headers",
"Response",
] }
tokio = { version = "1.26", features = ["macros"] }
getrandom = { version = "0.2", features = ["js"] }
[features]
serializable_callbacks = []
p2p-webrtc = ["p2p-webrtc-rs"]
p2p-webrtc-rs = ["webrtc", "rcgen"]
p2p-webrtc-cpp = ["datachannel"]
p2p-libp2p = ["fuzzing", "dep:reqwest", "dep:faster-stun"]
fuzzing = ["openmina-fuzzer", "openmina-core/fuzzing"]