Cargo.toml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. # Each example should have an explicit `[[example]]` section here to
  14. # ensure that the correct features are enabled.
  15. autoexamples = false
  16. [dependencies]
  17. managed = { version = "0.7", default-features = false, features = ["map"] }
  18. byteorder = { version = "1.0", default-features = false }
  19. log = { version = "0.3", default-features = false, optional = true }
  20. libc = { version = "0.2.18", optional = true }
  21. bitflags = { version = "1.0", default-features = false }
  22. [dev-dependencies]
  23. env_logger = "0.4"
  24. getopts = "0.2"
  25. rand = "0.3"
  26. url = "1.0"
  27. [features]
  28. std = ["managed/std"]
  29. alloc = ["managed/alloc"]
  30. verbose = []
  31. "phy-raw_socket" = ["std", "libc"]
  32. "phy-tap_interface" = ["std", "libc"]
  33. "proto-ipv4" = []
  34. "proto-ipv6" = []
  35. "socket-raw" = []
  36. "socket-udp" = []
  37. "socket-tcp" = []
  38. "socket-icmp" = []
  39. default = [
  40. "std", "log", # needed for `cargo test --no-default-features --features default` :/
  41. "phy-raw_socket", "phy-tap_interface",
  42. "proto-ipv4", "proto-ipv6",
  43. "socket-raw", "socket-icmp", "socket-udp", "socket-tcp"
  44. ]
  45. [[example]]
  46. name = "packet2pcap"
  47. path = "utils/packet2pcap.rs"
  48. required-features = ["std"]
  49. [[example]]
  50. name = "tcpdump"
  51. required-features = ["std", "phy-raw_socket", "proto-ipv4"]
  52. [[example]]
  53. name = "httpclient"
  54. required-features = ["std", "phy-tap_interface", "proto-ipv4", "proto-ipv6", "socket-tcp"]
  55. [[example]]
  56. name = "ping"
  57. required-features = ["std", "phy-tap_interface", "proto-ipv4", "proto-ipv6", "socket-icmp"]
  58. [[example]]
  59. name = "server"
  60. required-features = ["std", "phy-tap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
  61. [[example]]
  62. name = "client"
  63. required-features = ["std", "phy-tap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
  64. [[example]]
  65. name = "loopback"
  66. required-features = ["log", "proto-ipv4", "socket-tcp"]
  67. [[example]]
  68. name = "benchmark"
  69. required-features = ["std", "phy-tap_interface", "proto-ipv4", "socket-tcp"]
  70. [profile.release]
  71. debug = 2