Cargo.toml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. [package]
  2. name = "smoltcp"
  3. version = "0.10.0"
  4. edition = "2021"
  5. rust-version = "1.65"
  6. authors = ["whitequark <[email protected]>"]
  7. description = "A TCP/IP stack designed for bare-metal, real-time systems without a heap."
  8. documentation = "https://docs.rs/smoltcp/"
  9. homepage = "https://github.com/smoltcp-rs/smoltcp"
  10. repository = "https://github.com/smoltcp-rs/smoltcp.git"
  11. readme = "README.md"
  12. keywords = ["ip", "tcp", "udp", "ethernet", "network"]
  13. categories = ["embedded", "network-programming"]
  14. license = "0BSD"
  15. # Each example should have an explicit `[[example]]` section here to
  16. # ensure that the correct features are enabled.
  17. autoexamples = false
  18. [dependencies]
  19. managed = { version = "0.8", default-features = false, features = ["map"] }
  20. byteorder = { version = "1.0", default-features = false }
  21. log = { version = "0.4.4", default-features = false, optional = true }
  22. libc = { version = "0.2.18", optional = true }
  23. bitflags = { version = "1.0", default-features = false }
  24. defmt = { version = "0.3", optional = true }
  25. cfg-if = "1.0.0"
  26. heapless = "0.7.15"
  27. [dev-dependencies]
  28. env_logger = "0.10"
  29. getopts = "0.2"
  30. rand = "0.8"
  31. url = "2.0"
  32. rstest = "0.17"
  33. [features]
  34. std = ["managed/std", "alloc"]
  35. alloc = ["managed/alloc", "defmt?/alloc"]
  36. verbose = []
  37. defmt = [ "dep:defmt", "heapless/defmt", "heapless/defmt-impl" ]
  38. "medium-ethernet" = ["socket"]
  39. "medium-ip" = ["socket"]
  40. "medium-ieee802154" = ["socket", "proto-sixlowpan"]
  41. "phy-raw_socket" = ["std", "libc"]
  42. "phy-tuntap_interface" = ["std", "libc", "medium-ethernet"]
  43. "proto-ipv4" = []
  44. "proto-ipv4-fragmentation" = ["proto-ipv4", "_proto-fragmentation"]
  45. "proto-igmp" = ["proto-ipv4"]
  46. "proto-dhcpv4" = ["proto-ipv4"]
  47. "proto-ipv6" = []
  48. "proto-rpl" = []
  49. "proto-sixlowpan" = ["proto-ipv6"]
  50. "proto-sixlowpan-fragmentation" = ["proto-sixlowpan", "_proto-fragmentation"]
  51. "proto-dns" = []
  52. "socket" = []
  53. "socket-raw" = ["socket"]
  54. "socket-udp" = ["socket"]
  55. "socket-tcp" = ["socket"]
  56. "socket-icmp" = ["socket"]
  57. "socket-dhcpv4" = ["socket", "medium-ethernet", "proto-dhcpv4"]
  58. "socket-dns" = ["socket", "proto-dns"]
  59. "socket-mdns" = ["socket-dns"]
  60. "packetmeta-id" = []
  61. "async" = []
  62. default = [
  63. "std", "log", # needed for `cargo test --no-default-features --features default` :/
  64. "medium-ethernet", "medium-ip", "medium-ieee802154",
  65. "phy-raw_socket", "phy-tuntap_interface",
  66. "proto-ipv4", "proto-igmp", "proto-dhcpv4", "proto-ipv6", "proto-dns",
  67. "proto-ipv4-fragmentation", "proto-sixlowpan-fragmentation",
  68. "socket-raw", "socket-icmp", "socket-udp", "socket-tcp", "socket-dhcpv4", "socket-dns", "socket-mdns",
  69. "packetmeta-id", "async"
  70. ]
  71. # Private features
  72. # Features starting with "_" are considered private. They should not be enabled by
  73. # other crates, and they are not considered semver-stable.
  74. "_proto-fragmentation" = []
  75. # BEGIN AUTOGENERATED CONFIG FEATURES
  76. # Generated by gen_config.py. DO NOT EDIT.
  77. iface-max-addr-count-1 = []
  78. iface-max-addr-count-2 = [] # Default
  79. iface-max-addr-count-3 = []
  80. iface-max-addr-count-4 = []
  81. iface-max-addr-count-5 = []
  82. iface-max-addr-count-6 = []
  83. iface-max-addr-count-7 = []
  84. iface-max-addr-count-8 = []
  85. iface-max-multicast-group-count-1 = []
  86. iface-max-multicast-group-count-2 = []
  87. iface-max-multicast-group-count-3 = []
  88. iface-max-multicast-group-count-4 = [] # Default
  89. iface-max-multicast-group-count-5 = []
  90. iface-max-multicast-group-count-6 = []
  91. iface-max-multicast-group-count-7 = []
  92. iface-max-multicast-group-count-8 = []
  93. iface-max-multicast-group-count-16 = []
  94. iface-max-multicast-group-count-32 = []
  95. iface-max-multicast-group-count-64 = []
  96. iface-max-multicast-group-count-128 = []
  97. iface-max-multicast-group-count-256 = []
  98. iface-max-multicast-group-count-512 = []
  99. iface-max-multicast-group-count-1024 = []
  100. iface-max-sixlowpan-address-context-count-1 = []
  101. iface-max-sixlowpan-address-context-count-2 = []
  102. iface-max-sixlowpan-address-context-count-3 = []
  103. iface-max-sixlowpan-address-context-count-4 = [] # Default
  104. iface-max-sixlowpan-address-context-count-5 = []
  105. iface-max-sixlowpan-address-context-count-6 = []
  106. iface-max-sixlowpan-address-context-count-7 = []
  107. iface-max-sixlowpan-address-context-count-8 = []
  108. iface-max-sixlowpan-address-context-count-16 = []
  109. iface-max-sixlowpan-address-context-count-32 = []
  110. iface-max-sixlowpan-address-context-count-64 = []
  111. iface-max-sixlowpan-address-context-count-128 = []
  112. iface-max-sixlowpan-address-context-count-256 = []
  113. iface-max-sixlowpan-address-context-count-512 = []
  114. iface-max-sixlowpan-address-context-count-1024 = []
  115. iface-neighbor-cache-count-1 = []
  116. iface-neighbor-cache-count-2 = []
  117. iface-neighbor-cache-count-3 = []
  118. iface-neighbor-cache-count-4 = [] # Default
  119. iface-neighbor-cache-count-5 = []
  120. iface-neighbor-cache-count-6 = []
  121. iface-neighbor-cache-count-7 = []
  122. iface-neighbor-cache-count-8 = []
  123. iface-neighbor-cache-count-16 = []
  124. iface-neighbor-cache-count-32 = []
  125. iface-neighbor-cache-count-64 = []
  126. iface-neighbor-cache-count-128 = []
  127. iface-neighbor-cache-count-256 = []
  128. iface-neighbor-cache-count-512 = []
  129. iface-neighbor-cache-count-1024 = []
  130. iface-max-route-count-1 = []
  131. iface-max-route-count-2 = [] # Default
  132. iface-max-route-count-3 = []
  133. iface-max-route-count-4 = []
  134. iface-max-route-count-5 = []
  135. iface-max-route-count-6 = []
  136. iface-max-route-count-7 = []
  137. iface-max-route-count-8 = []
  138. iface-max-route-count-16 = []
  139. iface-max-route-count-32 = []
  140. iface-max-route-count-64 = []
  141. iface-max-route-count-128 = []
  142. iface-max-route-count-256 = []
  143. iface-max-route-count-512 = []
  144. iface-max-route-count-1024 = []
  145. fragmentation-buffer-size-256 = []
  146. fragmentation-buffer-size-512 = []
  147. fragmentation-buffer-size-1024 = []
  148. fragmentation-buffer-size-1500 = [] # Default
  149. fragmentation-buffer-size-2048 = []
  150. fragmentation-buffer-size-4096 = []
  151. fragmentation-buffer-size-8192 = []
  152. fragmentation-buffer-size-16384 = []
  153. fragmentation-buffer-size-32768 = []
  154. fragmentation-buffer-size-65536 = []
  155. assembler-max-segment-count-1 = []
  156. assembler-max-segment-count-2 = []
  157. assembler-max-segment-count-3 = []
  158. assembler-max-segment-count-4 = [] # Default
  159. assembler-max-segment-count-8 = []
  160. assembler-max-segment-count-16 = []
  161. assembler-max-segment-count-32 = []
  162. reassembly-buffer-size-256 = []
  163. reassembly-buffer-size-512 = []
  164. reassembly-buffer-size-1024 = []
  165. reassembly-buffer-size-1500 = [] # Default
  166. reassembly-buffer-size-2048 = []
  167. reassembly-buffer-size-4096 = []
  168. reassembly-buffer-size-8192 = []
  169. reassembly-buffer-size-16384 = []
  170. reassembly-buffer-size-32768 = []
  171. reassembly-buffer-size-65536 = []
  172. reassembly-buffer-count-1 = [] # Default
  173. reassembly-buffer-count-2 = []
  174. reassembly-buffer-count-3 = []
  175. reassembly-buffer-count-4 = []
  176. reassembly-buffer-count-8 = []
  177. reassembly-buffer-count-16 = []
  178. reassembly-buffer-count-32 = []
  179. dns-max-result-count-1 = [] # Default
  180. dns-max-result-count-2 = []
  181. dns-max-result-count-3 = []
  182. dns-max-result-count-4 = []
  183. dns-max-result-count-8 = []
  184. dns-max-result-count-16 = []
  185. dns-max-result-count-32 = []
  186. dns-max-server-count-1 = [] # Default
  187. dns-max-server-count-2 = []
  188. dns-max-server-count-3 = []
  189. dns-max-server-count-4 = []
  190. dns-max-server-count-8 = []
  191. dns-max-server-count-16 = []
  192. dns-max-server-count-32 = []
  193. dns-max-name-size-64 = []
  194. dns-max-name-size-128 = []
  195. dns-max-name-size-255 = [] # Default
  196. rpl-relations-buffer-count-1 = []
  197. rpl-relations-buffer-count-2 = []
  198. rpl-relations-buffer-count-4 = []
  199. rpl-relations-buffer-count-8 = []
  200. rpl-relations-buffer-count-16 = [] # Default
  201. rpl-relations-buffer-count-32 = []
  202. rpl-relations-buffer-count-64 = []
  203. rpl-relations-buffer-count-128 = []
  204. rpl-parents-buffer-count-2 = []
  205. rpl-parents-buffer-count-4 = []
  206. rpl-parents-buffer-count-8 = [] # Default
  207. rpl-parents-buffer-count-16 = []
  208. rpl-parents-buffer-count-32 = []
  209. # END AUTOGENERATED CONFIG FEATURES
  210. [[example]]
  211. name = "packet2pcap"
  212. path = "utils/packet2pcap.rs"
  213. required-features = ["std"]
  214. [[example]]
  215. name = "tcpdump"
  216. required-features = ["std", "phy-raw_socket", "proto-ipv4"]
  217. [[example]]
  218. name = "httpclient"
  219. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-ipv6", "socket-tcp"]
  220. [[example]]
  221. name = "ping"
  222. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-ipv6", "socket-icmp"]
  223. [[example]]
  224. name = "server"
  225. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
  226. [[example]]
  227. name = "client"
  228. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
  229. [[example]]
  230. name = "loopback"
  231. required-features = ["log", "medium-ethernet", "proto-ipv4", "socket-tcp"]
  232. [[example]]
  233. name = "multicast"
  234. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-igmp", "socket-udp"]
  235. [[example]]
  236. name = "benchmark"
  237. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-raw", "socket-udp"]
  238. [[example]]
  239. name = "dhcp_client"
  240. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-dhcpv4", "socket-raw"]
  241. [[example]]
  242. name = "sixlowpan"
  243. required-features = ["std", "medium-ieee802154", "phy-raw_socket", "proto-sixlowpan", "proto-sixlowpan-fragmentation", "socket-udp"]
  244. [[example]]
  245. name = "sixlowpan_benchmark"
  246. required-features = ["std", "medium-ieee802154", "phy-raw_socket", "proto-sixlowpan", "proto-sixlowpan-fragmentation", "socket-udp"]
  247. [[example]]
  248. name = "dns"
  249. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-dns"]
  250. [profile.release]
  251. debug = 2