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 = "*" 19zerocopy = "*" 20 21net_sys = { path = "../net_sys" } 22pcap-file = { version = "1.1.0", optional = true } 23remain = "*" 24serde = { version = "1", features = [ "derive" ] } 25smallvec = "*" 26thiserror = "*" 27virtio_sys = { path = "../virtio_sys" } 28 29[target.'cfg(windows)'.dependencies] 30metrics = { path = "../metrics" } 31winapi = { version = "*", features = ["everything", "std", "impl-default"] } 32libslirp-sys = { version = "4.2.1", optional = true } 33 34[build-dependencies] 35anyhow = "*" 36prebuilts = { path = "../prebuilts" } 37 38[dev-dependencies] 39serde_json = "*" 40