2017-06-16 06:21:15 +00:00
|
|
|
[package]
|
|
|
|
name = "net_util"
|
|
|
|
version = "0.1.0"
|
2022-12-29 21:24:33 +00:00
|
|
|
authors = ["The ChromiumOS Authors"]
|
2022-03-08 01:16:09 +00:00
|
|
|
edition = "2021"
|
2022-04-20 22:13:12 +00:00
|
|
|
build = 'build.rs'
|
|
|
|
|
|
|
|
[features]
|
|
|
|
guest-to-host-net-loopback = []
|
|
|
|
slirp = ["libslirp-sys", "pcap-file"]
|
|
|
|
slirp-debug = ["slirp"]
|
|
|
|
slirp-ring-capture = ["slirp"]
|
2017-06-16 06:21:15 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2022-04-20 22:13:12 +00:00
|
|
|
base = { path = "../base" }
|
2022-04-20 01:49:32 +00:00
|
|
|
cfg-if = "1.0.0"
|
2022-04-20 22:13:12 +00:00
|
|
|
cros_async = { path = "../cros_async" }
|
|
|
|
libc = "*"
|
|
|
|
pcap-file = { version = "1.1.0", optional = true }
|
2021-08-18 21:23:22 +00:00
|
|
|
remain = "*"
|
2022-04-20 01:49:32 +00:00
|
|
|
serde = { version = "1", features = [ "derive" ] }
|
2022-04-20 22:13:12 +00:00
|
|
|
smallvec = "*"
|
2021-05-13 10:08:56 +00:00
|
|
|
thiserror = "*"
|
2022-04-20 22:13:12 +00:00
|
|
|
virtio_sys = { path = "../virtio_sys" }
|
2023-09-20 19:11:35 +00:00
|
|
|
zerocopy = { version = "0.7", features = ["derive"] }
|
2022-04-20 01:49:32 +00:00
|
|
|
|
2023-11-20 20:53:06 +00:00
|
|
|
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
|
|
|
|
net_sys = { path = "../net_sys" }
|
|
|
|
|
2022-04-20 22:13:12 +00:00
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
|
|
metrics = { path = "../metrics" }
|
|
|
|
winapi = { version = "*", features = ["everything", "std", "impl-default"] }
|
2022-10-04 20:29:10 +00:00
|
|
|
libslirp-sys = { version = "4.2.1", optional = true }
|
|
|
|
|
|
|
|
[build-dependencies]
|
|
|
|
anyhow = "*"
|
|
|
|
prebuilts = { path = "../prebuilts" }
|
2022-09-12 08:20:06 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
serde_json = "*"
|