xref: /webrtc/util/Cargo.toml (revision e215e908)
1[package]
2name = "webrtc-util"
3version = "0.7.0"
4authors = ["Rain Liu <[email protected]>"]
5edition = "2021"
6description = "Utilities for WebRTC.rs stack"
7license = "MIT/Apache-2.0"
8documentation = "https://docs.rs/webrtc-util"
9homepage = "https://webrtc.rs"
10repository = "https://github.com/webrtc-rs/util"
11rust-version = "1.63.0"
12
13# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
14
15[features]
16default = ["buffer", "conn", "ifaces", "vnet", "marshal", "sync"]
17buffer = []
18conn = ["buffer", "sync"]
19ifaces = []
20vnet = ["ifaces"]
21marshal = []
22sync = []
23
24[dependencies]
25tokio = { version = "1.19", features = ["full"] }
26lazy_static = "1.4"
27async-trait = "0.1.56"
28ipnet = "2.5"
29log = "0.4.16"
30rand = "0.8.5"
31bytes = "1"
32thiserror = "~1.0.2"
33
34[target.'cfg(not(windows))'.dependencies]
35nix = "0.26.2"
36libc = "0.2.126"
37
38[target.'cfg(windows)'.dependencies]
39bitflags = "1.3"
40winapi = { version = "0.3.9", features = [
41    "basetsd",
42    "guiddef",
43    "ws2def",
44    "winerror",
45    "ws2ipdef",
46] }
47
48[build-dependencies]
49cc = "1.0.73"
50
51[dev-dependencies]
52tokio-test = "0.4.0" # must match the min version of the `tokio` crate above
53env_logger = "0.9.0"
54chrono = "0.4.23"
55criterion = { version = "0.4.0", features = ["async_futures"] }
56async-global-executor = "2.3.1"
57
58[[bench]]
59name = "bench"
60harness = false
61