Cargo.toml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. [package]
  2. name = "smoltcp"
  3. version = "0.5.0"
  4. authors = ["whitequark <[email protected]>"]
  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-igmp" = ["proto-ipv4"]
  35. "proto-ipv6" = []
  36. "socket-raw" = []
  37. "socket-udp" = []
  38. "socket-tcp" = []
  39. "socket-icmp" = []
  40. "proto-dhcpv4" = ["proto-ipv4"]
  41. default = [
  42. "std", "log", # needed for `cargo test --no-default-features --features default` :/
  43. "phy-raw_socket", "phy-tap_interface",
  44. "proto-ipv4", "proto-igmp", "proto-ipv6",
  45. "socket-raw", "socket-icmp", "socket-udp", "socket-tcp"
  46. ]
  47. # experimental; do not use; no guarantees provided that this feature will be kept
  48. "rust-1_28" = []
  49. [[example]]
  50. name = "packet2pcap"
  51. path = "utils/packet2pcap.rs"
  52. required-features = ["std"]
  53. [[example]]
  54. name = "tcpdump"
  55. required-features = ["std", "phy-raw_socket", "proto-ipv4"]
  56. [[example]]
  57. name = "httpclient"
  58. required-features = ["std", "phy-tap_interface", "proto-ipv4", "proto-ipv6", "socket-tcp"]
  59. [[example]]
  60. name = "ping"
  61. required-features = ["std", "phy-tap_interface", "proto-ipv4", "proto-ipv6", "socket-icmp"]
  62. [[example]]
  63. name = "server"
  64. required-features = ["std", "phy-tap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
  65. [[example]]
  66. name = "client"
  67. required-features = ["std", "phy-tap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
  68. [[example]]
  69. name = "loopback"
  70. required-features = ["log", "proto-ipv4", "socket-tcp"]
  71. [[example]]
  72. name = "multicast"
  73. required-features = ["std", "phy-tap_interface", "proto-ipv4", "proto-igmp", "socket-udp"]
  74. [[example]]
  75. name = "benchmark"
  76. required-features = ["std", "phy-tap_interface", "proto-ipv4", "socket-raw", "socket-udp"]
  77. [profile.release]
  78. debug = 2