Cargo.toml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. byteorder = { version = "1.0", default-features = false }
  15. log = { version = "0.3", default-features = false, optional = true }
  16. libc = { version = "0.2.18", optional = true }
  17. [dependencies.managed]
  18. git = "https://github.com/m-labs/rust-managed.git"
  19. rev = "629a6786a1cf1692015f464ed16c04eafa5cb8d1"
  20. default-features = false
  21. features = ["map"]
  22. [dev-dependencies]
  23. log = "0.3"
  24. env_logger = "0.4"
  25. getopts = "0.2"
  26. rand = "0.3"
  27. url = "1.0"
  28. [features]
  29. std = ["managed/std"]
  30. alloc = ["managed/alloc"]
  31. verbose = []
  32. "phy-raw_socket" = ["std", "libc"]
  33. "phy-tap_interface" = ["std", "libc"]
  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. "socket-raw", "socket-icmp", "socket-udp", "socket-tcp"
  43. ]
  44. [[example]]
  45. name = "tcpdump"
  46. required-features = ["std", "phy-raw_socket"]
  47. [[example]]
  48. name = "httpclient"
  49. required-features = ["std", "phy-tap_interface", "socket-tcp"]
  50. [[example]]
  51. name = "ping"
  52. required-features = ["std", "phy-tap_interface", "socket-icmp"]
  53. [[example]]
  54. name = "server"
  55. required-features = ["std", "phy-tap_interface", "socket-tcp", "socket-udp"]
  56. [[example]]
  57. name = "client"
  58. required-features = ["std", "phy-tap_interface", "socket-tcp", "socket-udp"]
  59. [[example]]
  60. name = "loopback"
  61. required-features = ["alloc", "proto-ipv4"]