Cargo.toml 1.0 KB

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