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. 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. 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 = "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