forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
75 lines (70 loc) · 3.12 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
[package]
name = "network"
version = "0.1.0"
authors = ["Aptos Labs <[email protected]>"]
description = "Aptos networking stack"
repository = "https://github.com/aptos-labs/aptos-core"
homepage = "https://aptoslabs.com"
license = "Apache-2.0"
publish = false
edition = "2018"
[dependencies]
anyhow = "1.0.52"
async-trait = "0.1.42"
bytes = { version = "1.0.1", features = ["serde"] }
futures = "0.3.12"
futures-util = "0.3.12"
hex = "0.4.3"
itertools = "0.10.1"
once_cell = "1.7.2"
pin-project = "1.0.5"
proptest = { version = "1.0.0", default-features = true, optional = true }
proptest-derive = { version = "0.3.0", optional = true }
rand = { version = "0.8.3", features = ["small_rng"] }
rand_core = { version = "0.6.2", optional = true }
serde = { version = "1.0.124", default-features = false }
serde_bytes = "0.11.5"
serde_json = "1.0.64"
thiserror = "1.0.24"
tokio = { version = "1.8.1", features = ["full"] }
tokio-retry = "0.3.0"
tokio-stream = "0.1.4"
tokio-util = { version = "0.6.4", features = ["compat", "codec"] }
bitvec = { path = "../crates/aptos-bitvec", package = "aptos-bitvec" }
channel = { path = "../crates/channel" }
bcs = "0.1.2"
aptos-config = { path = "../config" }
aptos-crypto = { path = "../crates/aptos-crypto" }
aptos-crypto-derive = { path = "../crates/aptos-crypto-derive" }
aptos-id-generator = { path = "../crates/aptos-id-generator" }
aptos-infallible = { path = "../crates/aptos-infallible" }
aptos-logger = { path = "../crates/aptos-logger" }
aptos-metrics = { path = "../crates/aptos-metrics" }
aptos-proptest-helpers = { path = "../crates/aptos-proptest-helpers", optional = true }
aptos-rate-limiter = { path = "../crates/aptos-rate-limiter"}
aptos-time-service = { path = "../crates/aptos-time-service", features = ["async"] }
aptos-types = { path = "../types" }
aptos-workspace-hack = { version = "0.1", path = "../crates/aptos-workspace-hack" }
memsocket = { path = "./memsocket", optional = true }
netcore = { path = "./netcore" }
num-variants = { path = "../crates/num-variants" }
short-hex-str = { path = "../crates/short-hex-str" }
[dev-dependencies]
aptos-config = { path = "../config", features = ["testing"] }
aptos-proptest-helpers = { path = "../crates/aptos-proptest-helpers" }
aptos-time-service = { path = "../crates/aptos-time-service", features = ["async", "testing"] }
aptos-types = { path = "../types", features = ["fuzzing"] }
bitvec = { path = "../crates/aptos-bitvec", package = "aptos-bitvec", features = ["fuzzing"] }
memsocket = { path = "./memsocket" }
netcore = { path = "./netcore", features = ["testing"] }
network-builder = {path = "./builder"}
criterion = "0.3.4"
maplit = "1.0.2"
proptest = { version = "1.0.0", default-features = true }
proptest-derive = { version = "0.3.0" }
rand_core = "0.6.2"
serial_test = "0.5.1"
[features]
default = []
fuzzing = ["bitvec/fuzzing", "aptos-config/fuzzing", "aptos-crypto/fuzzing", "aptos-types/fuzzing", "aptos-proptest-helpers", "aptos-time-service/testing", "aptos-types/fuzzing", "memsocket/testing", "netcore/fuzzing", "proptest", "proptest-derive", "rand_core"]
testing = ["aptos-config/testing", "aptos-time-service/testing", "memsocket/testing", "netcore/testing"]