-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
85 lines (78 loc) · 1.97 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
[workspace]
members = ['.', 'rattan-core']
resolver = "2"
[workspace.package]
version = "0.1.0"
edition = "2021"
homepage = "https://github.com/stack-rs/rattan"
repository = "https://github.com/stack-rs/rattan"
rust-version = "1.77"
[workspace.dependencies]
ctrlc = "3.2.5"
figment = { version = "0.10", features = ["toml", "env", "json"] }
futures = "0.3.29"
human-bandwidth = { version = "0.1.1", features = ["serde"] }
netem-trace = { version = "0.3.3", features = ["serde", "human", "mahimahi"] }
nix = { version = "0.29.0", features = [
"time",
"net",
"event",
"ioctl",
"mount",
"sched",
"signal",
] }
once_cell = "1.19"
rand = "0.8.5"
serde = { version = "1.0.160", features = ["derive"] }
tokio = { version = "1.26.0", features = [
"rt-multi-thread",
"time",
"net",
"sync",
"signal",
"tokio-macros",
"macros",
] }
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
[package]
name = "rattan"
version.workspace = true
edition.workspace = true
homepage.workspace = true
repository.workspace = true
rust-version.workspace = true
[dependencies]
# anyhow = "1.0.75"
# bollard = "0.15.0"
clap = { version = "4.2.4", features = ["derive"] }
ctrlc = { workspace = true }
dirs = "5.0.1"
figment = { workspace = true }
futures = { workspace = true }
human-bandwidth = { workspace = true }
humantime = "2.1.0"
netem-trace = { workspace = true }
nix = { workspace = true }
once_cell = { workspace = true }
paste = "1.0.14"
rand = { workspace = true }
rattan-core = { path = "rattan-core", features = ["serde"] }
serde = { workspace = true }
serde_json = "1.0.114"
tokio = { workspace = true }
toml = "0.8.12"
tracing = { workspace = true }
tracing-appender = "0.2.3"
tracing-subscriber = { workspace = true }
[features]
http = ["rattan-core/http"]
packet-dump = ["rattan-core/packet-dump"]
# required for cargo flamegraph
[profile.release]
debug = true
# required for cargo flamegraph
[profile.dev]
debug = true
opt-level = 0