xref: /aosp_15_r20/tools/netsim/rust/daemon/Cargo.toml (revision cf78ab8cffb8fc9207af348f23af247fb04370a6)
1[package]
2name = "netsim-daemon"
3version = "0.3.37"
4edition = "2021"
5build = "build.rs"
6
7[lib]
8crate-type = ["staticlib", "lib"]
9doctest = false
10
11[dependencies]
12bytes = { version = ">=1.4.0"}
13clap = { version = "4.1.8", default-features = false, features = ["derive", "error-context", "help", "std", "usage", "env" ] }
14cxx = { version = ">=1.0.85", features = ["c++17"] }
15data-encoding = "2.4.0"
16futures = "0.3.30"
17glam = { version = "0.25.0", features = ["libm"] }
18netsim-proto = { path = "../proto" }
19http = "0.2.9"
20netsim-common = { path = "../common" }
21libslirp-rs = { path = "../libslirp-rs" }
22hostapd-rs = { path = "../hostapd-rs" }
23http-proxy = { path = "../http-proxy" }
24netsim-packets = { path = "../packets" }
25# Relax the version constraint for 'pica' to allow cargo to select a compatible version
26# from crates.io since 0.1.9 seems to be only available in AOSP.
27pica = { version = "0.1", default-features = false }
28protobuf = "3.2.0"
29protobuf-json-mapping = "3.2.0"
30rand = "0.8.5"
31regex = "1.6.0"
32tokio = { version = "1.32.0", features = ["fs", "io-util", "macros", "net", "rt-multi-thread"] }
33tokio-stream = { version = "0.1.14", features = ["sync"] }
34thiserror = { version = ">=1.0.40"}
35tungstenite = { version = ">=0.19.0", default-features = false }
36log = "0.4.17"
37anyhow = "1"
38pdl-runtime = "0.3.0"
39grpcio =  {version= "0.13.0", default-features = false, features = ["protobufv3-codec"]}
40futures-channel = { version = "0.3.30", features = ["sink"] }
41futures-executor = "0.3.30"
42futures-util = { version = "0.3.30", default-features = false, features = ["sink"] }
43socket2 = "0.5.5"
44
45[build-dependencies]
46cxx-build = "1.0.92"
47
48[features]
49local_ssl = []
50default = ["local_ssl"]
51cuttlefish = []
52