Cargo.toml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. [package]
  2. name = "smoltcp"
  3. version = "0.4.0"
  4. authors = ["whitequark <whitequark@whitequark.org>"]
  5. description = "A TCP/IP stack designed for bare-metal, real-time systems without a heap."
  6. documentation = "https://docs.rs/smoltcp/"
  7. homepage = "https://github.com/m-labs/smoltcp"
  8. repository = "https://github.com/m-labs/smoltcp.git"
  9. readme = "README.md"
  10. keywords = ["ip", "tcp", "udp", "ethernet", "network"]
  11. categories = ["embedded"]
  12. license = "0BSD"
  13. [dependencies]
  14. managed = { version = "0.5", default-features = false, features = ["map"] }
  15. byteorder = { version = "1.0", default-features = false }
  16. log = { version = "0.3", default-features = false, optional = true }
  17. libc = { version = "0.2.18", optional = true }
  18. [dev-dependencies]
  19. env_logger = "0.4"
  20. getopts = "0.2"
  21. rand = "0.3"
  22. url = "1.0"
  23. [features]
  24. std = ["managed/std"]
  25. alloc = ["managed/alloc"]
  26. verbose = []
  27. "phy-raw_socket" = ["std", "libc"]
  28. "phy-tap_interface" = ["std", "libc"]
  29. "proto-ipv4" = []
  30. "proto-ipv6" = []
  31. "socket-raw" = []
  32. "socket-udp" = []
  33. "socket-tcp" = []
  34. "socket-icmp" = []
  35. default = [
  36. "std", "log", # needed for `cargo test --no-default-features --features default` :/
  37. "phy-raw_socket", "phy-tap_interface",
  38. "proto-ipv4", "proto-ipv6",
  39. "socket-raw", "socket-icmp", "socket-udp", "socket-tcp"
  40. ]
  41. [[example]]
  42. name = "packet2pcap"
  43. path = "utils/packet2pcap.rs"
  44. required-features = ["std"]
  45. [[example]]
  46. name = "tcpdump"
  47. required-features = ["std", "phy-raw_socket", "proto-ipv4"]
  48. [[example]]
  49. name = "httpclient"
  50. required-features = ["std", "phy-tap_interface", "proto-ipv4", "socket-tcp"]
  51. [[example]]
  52. name = "ping"
  53. required-features = ["std", "phy-tap_interface", "proto-ipv4", "socket-icmp"]
  54. [[example]]
  55. name = "server"
  56. required-features = ["std", "phy-tap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
  57. [[example]]
  58. name = "client"
  59. required-features = ["std", "phy-tap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
  60. [[example]]
  61. name = "loopback"
  62. required-features = ["log", "proto-ipv4", "socket-tcp"]
  63. [[example]]
  64. name = "benchmark"
  65. required-features = ["std", "phy-tap_interface", "proto-ipv4", "socket-tcp"]
  66. [profile.release]
  67. debug = 2