-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
147 lines (136 loc) · 3.52 KB
/
Cargo.toml
File metadata and controls
147 lines (136 loc) · 3.52 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
[package]
name = "rattan"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
homepage.workspace = true
repository.workspace = true
license.workspace = true
readme.workspace = true
description.workspace = true
keywords.workspace = true
categories.workspace = true
default-run = "rattan"
[workspace]
resolver = "2"
members = [".", "rattan-core", "rattan-env", "rattan-log"]
[workspace.package]
version = "0.1.1"
edition = "2021"
rust-version = "1.86"
homepage = "https://github.com/stack-rs/rattan"
repository = "https://github.com/stack-rs/rattan"
license = "Apache-2.0"
readme = "README.md"
description = "An Extensible and Scalable Modular Internet Path Emulator"
keywords = ["network", "emulation", "utility", "transport", "evaluation"]
categories = [
"network-programming",
"command-line-utilities",
"development-tools",
"emulators",
]
[workspace.dependencies]
derive_more = { version = "2.0.1", features = ["deref", "deref_mut"] }
bitfield = "0.19.0"
clap = { version = "4.2.4", features = ["derive"] }
csv = "1.4.0"
ctrlc = "3.5.2"
figment = { version = "0.10", features = ["env", "json", "toml"] }
futures = "0.3.32"
human-bandwidth = { version = "0.1.4", features = ["binary-system", "serde"] }
ipnet = { version = "2.11.0", features = ["serde"] }
jiff = "0.2.15"
libc = "0.2.141"
netem-trace = { version = "0.4.4", features = [
"human",
"mahimahi",
"serde",
"trace-ext",
] }
nix = { version = "0.31.1", features = [
"event",
"ioctl",
"mount",
"net",
"sched",
"signal",
"time",
] }
num_enum = "0.7.5"
once_cell = "1.19"
parking_lot = "0.12.5"
pcap-file = { version = "2.0.0" }
rand = "0.10.0"
rtnetlink = "0.20.0"
serde = { version = "1.0.160", features = ["derive"] }
tempfile = "3"
test-log = { version = "0.2.18", features = ["trace"] }
thiserror = "2.0.0"
tokio = { version = "1.26.0", features = [
"macros",
"net",
"rt-multi-thread",
"signal",
"sync",
"time",
"tokio-macros",
] }
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
[[bin]]
name = "rattan"
path = "src/main.rs"
# [[bin]]
# name = "rattan-xdp"
# path = "src/main-xdp.rs"
# required-features = ["xdp"]
[dependencies]
# anyhow = "1.0.75"
# bollard = "0.15.0"
clap = { workspace = true }
csv = { workspace = true }
ctrlc = { workspace = true }
dirs = "6.0.0"
figment = { workspace = true }
futures = { workspace = true }
human-bandwidth = { workspace = true }
human-time = "0.1.6"
jiff = { workspace = true }
mnl = { version = "0.3.0", optional = true }
netem-trace = { workspace = true }
nftnl = { version = "0.9.0", optional = true }
nix = { workspace = true }
once_cell = { workspace = true }
paste = "1.0.14"
rand = { workspace = true }
rattan-core = { path = "rattan-core", features = ["serde"], version = "0.1.1" }
rattan-log = { path = "rattan-log", version = "0.1.1" }
serde = { workspace = true }
serde_json = "1.0.114"
shadow-rs = { version = "1.7.0", default-features = false }
tokio = { workspace = true }
toml = "1.0.1"
tracing = { workspace = true }
tracing-appender = "0.2.3"
tracing-subscriber = { workspace = true }
[build-dependencies]
shadow-rs = "1.7.0"
[features]
default = ["first-packet"]
first-packet = ["rattan-core/first-packet"]
http = ["rattan-core/http"]
nat = ["dep:mnl", "dep:nftnl"]
packet-dump = ["rattan-core/packet-dump"]
xdp = ["rattan-core/xdp"]
# required for cargo flamegraph
[profile.dev]
opt-level = 0
debug = true
# required for cargo flamegraph
[profile.release]
debug = true
# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"