-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
48 lines (42 loc) · 1.78 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
[package]
name = "netem-trace"
version = "0.3.6"
edition = "2021"
license = "Apache-2.0"
description = "A library for for generating network emulation trace."
readme = "README.md"
homepage = "https://github.com/stack-rs/netem-trace"
repository = "https://github.com/stack-rs/netem-trace"
keywords = ["emulation", "trace", "network", "utility", "model"]
documentation = "https://docs.rs/netem-trace"
categories = ["network-programming", "config", "development-tools", "simulation"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bandwidth = "0.3.0"
dyn-clone = { version = "1.0.10", optional = true }
itertools = { version = "0.13.0", optional = true }
once_cell = { version = "1.17.0", optional = true }
rand = { version = "0.8.5", optional = true }
rand_distr = { version = "0.4.3", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
typetag = { version = "0.2.5", optional = true }
humantime-serde = { version = "1.1.1", optional = true }
human-bandwidth = { version = "0.1.1", optional = true }
statrs = { version = "0.18.0", optional = true}
[dev-dependencies]
serde_json = "1.0"
figment = {version = "0.10.19", features = ["json"]}
[features]
default = ["model"]
model = ["bw-model", "delay-model", "loss-model", "duplicate-model"]
bw-model = ["dep:rand", "dep:rand_distr", "dep:once_cell", "dep:dyn-clone"]
delay-model = ["dep:dyn-clone"]
loss-model = ["dep:dyn-clone"]
duplicate-model = ["dep:dyn-clone"]
serde = ["dep:serde", "dep:typetag", "bandwidth/serde"]
mahimahi = ["dep:itertools"]
human = ["serde", "dep:humantime-serde", "dep:human-bandwidth", "human-bandwidth/serde"]
full = ["model", "mahimahi", "human", "truncated-normal"]
truncated-normal = ["statrs"]
[package.metadata.docs.rs]
all-features = true