1[package] 2name = "net_util" 3version = "0.1.0" 4authors = ["The ChromiumOS Authors"] 5edition = "2021" 6build = 'build.rs' 7 8[features] 9guest-to-host-net-loopback = [] 10slirp = ["libslirp-sys", "pcap-file"] 11slirp-debug = ["slirp"] 12slirp-ring-capture = ["slirp"] 13 14[dependencies] 15base = { path = "../base" } 16cfg-if = "1.0.0" 17cros_async = { path = "../cros_async" } 18libc = "0.2" 19pcap-file = { version = "1.1.0", optional = true } 20remain = "0.2" 21serde = { version = "1", features = [ "derive" ] } 22smallvec = "1" 23thiserror = "1" 24virtio_sys = { path = "../virtio_sys" } 25zerocopy = { version = "0.7", features = ["derive"] } 26 27[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies] 28net_sys = { path = "../net_sys" } 29 30[target.'cfg(windows)'.dependencies] 31metrics = { path = "../metrics" } 32winapi = { version = "0.3", features = ["everything", "std", "impl-default"] } 33libslirp-sys = { version = "4.2.1", optional = true } 34 35[build-dependencies] 36anyhow = "1" 37prebuilts = { path = "../prebuilts" } 38 39[dev-dependencies] 40serde_json = "1" 41