Cargo.toml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. [package]
  2. name = "smoltcp"
  3. version = "0.8.0"
  4. edition = "2018"
  5. authors = ["whitequark <[email protected]>"]
  6. description = "A TCP/IP stack designed for bare-metal, real-time systems without a heap."
  7. documentation = "https://docs.rs/smoltcp/"
  8. homepage = "https://github.com/smoltcp-rs/smoltcp"
  9. repository = "https://github.com/smoltcp-rs/smoltcp.git"
  10. readme = "README.md"
  11. keywords = ["ip", "tcp", "udp", "ethernet", "network"]
  12. categories = ["embedded", "network-programming"]
  13. license = "0BSD"
  14. # Each example should have an explicit `[[example]]` section here to
  15. # ensure that the correct features are enabled.
  16. autoexamples = false
  17. [dependencies]
  18. managed = { version = "0.8", default-features = false, features = ["map"] }
  19. byteorder = { version = "1.0", default-features = false }
  20. log = { version = "0.4.4", default-features = false, optional = true }
  21. libc = { version = "0.2.18", optional = true }
  22. bitflags = { version = "1.0", default-features = false }
  23. defmt = { version = "0.2.0", optional = true }
  24. [dev-dependencies]
  25. env_logger = "0.5"
  26. getopts = "0.2"
  27. rand = "0.3"
  28. url = "1.0"
  29. [features]
  30. std = ["managed/std"]
  31. alloc = ["managed/alloc"]
  32. verbose = []
  33. "medium-ethernet" = ["socket"]
  34. "medium-ip" = ["socket"]
  35. "phy-raw_socket" = ["std", "libc", "medium-ethernet"]
  36. "phy-tuntap_interface" = ["std", "libc", "medium-ethernet"]
  37. "proto-ipv4" = []
  38. "proto-igmp" = ["proto-ipv4"]
  39. "proto-dhcpv4" = ["proto-ipv4"]
  40. "proto-ipv6" = []
  41. "socket" = []
  42. "socket-raw" = ["socket"]
  43. "socket-udp" = ["socket"]
  44. "socket-tcp" = ["socket"]
  45. "socket-icmp" = ["socket"]
  46. "socket-dhcpv4" = ["socket", "medium-ethernet", "proto-dhcpv4"]
  47. "async" = []
  48. defmt-trace = []
  49. defmt-debug = []
  50. defmt-info = []
  51. defmt-warn = []
  52. defmt-error = []
  53. default = [
  54. "std", "log", # needed for `cargo test --no-default-features --features default` :/
  55. "medium-ethernet", "medium-ip",
  56. "phy-raw_socket", "phy-tuntap_interface",
  57. "proto-ipv4", "proto-igmp", "proto-dhcpv4", "proto-ipv6",
  58. "socket-raw", "socket-icmp", "socket-udp", "socket-tcp", "socket-dhcpv4",
  59. "async"
  60. ]
  61. # experimental; do not use; no guarantees provided that this feature will be kept
  62. "rust-1_28" = []
  63. [[example]]
  64. name = "packet2pcap"
  65. path = "utils/packet2pcap.rs"
  66. required-features = ["std"]
  67. [[example]]
  68. name = "tcpdump"
  69. required-features = ["std", "phy-raw_socket", "proto-ipv4"]
  70. [[example]]
  71. name = "httpclient"
  72. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-ipv6", "socket-tcp"]
  73. [[example]]
  74. name = "ping"
  75. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-ipv6", "socket-icmp"]
  76. [[example]]
  77. name = "server"
  78. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
  79. [[example]]
  80. name = "client"
  81. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
  82. [[example]]
  83. name = "loopback"
  84. required-features = ["log", "medium-ethernet", "proto-ipv4", "socket-tcp"]
  85. [[example]]
  86. name = "multicast"
  87. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-igmp", "socket-udp"]
  88. [[example]]
  89. name = "benchmark"
  90. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-raw", "socket-udp"]
  91. [[example]]
  92. name = "dhcp_client"
  93. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-dhcpv4", "socket-raw"]
  94. [profile.release]
  95. debug = 2