Cargo.toml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. [package]
  2. name = "smoltcp"
  3. version = "0.9.1"
  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. [features]
  33. std = ["managed/std", "alloc"]
  34. alloc = ["managed/alloc", "defmt?/alloc"]
  35. verbose = []
  36. defmt = [ "dep:defmt", "heapless/defmt", "heapless/defmt-impl" ]
  37. "medium-ethernet" = ["socket"]
  38. "medium-ip" = ["socket"]
  39. "medium-ieee802154" = ["socket", "proto-sixlowpan"]
  40. "phy-raw_socket" = ["std", "libc"]
  41. "phy-tuntap_interface" = ["std", "libc", "medium-ethernet"]
  42. "proto-ipv4" = []
  43. "proto-ipv4-fragmentation" = ["proto-ipv4", "_proto-fragmentation"]
  44. "proto-igmp" = ["proto-ipv4"]
  45. "proto-dhcpv4" = ["proto-ipv4"]
  46. "proto-ipv6" = []
  47. "proto-rpl" = []
  48. "proto-sixlowpan" = ["proto-ipv6"]
  49. "proto-sixlowpan-fragmentation" = ["proto-sixlowpan", "_proto-fragmentation"]
  50. "proto-dns" = []
  51. "socket" = []
  52. "socket-raw" = ["socket"]
  53. "socket-udp" = ["socket"]
  54. "socket-tcp" = ["socket"]
  55. "socket-icmp" = ["socket"]
  56. "socket-dhcpv4" = ["socket", "medium-ethernet", "proto-dhcpv4"]
  57. "socket-dns" = ["socket", "proto-dns"]
  58. "socket-mdns" = ["socket-dns"]
  59. "packetmeta-id" = []
  60. "async" = []
  61. default = [
  62. "std", "log", # needed for `cargo test --no-default-features --features default` :/
  63. "medium-ethernet", "medium-ip", "medium-ieee802154",
  64. "phy-raw_socket", "phy-tuntap_interface",
  65. "proto-ipv4", "proto-igmp", "proto-dhcpv4", "proto-ipv6", "proto-dns",
  66. "proto-ipv4-fragmentation", "proto-sixlowpan-fragmentation",
  67. "socket-raw", "socket-icmp", "socket-udp", "socket-tcp", "socket-dhcpv4", "socket-dns", "socket-mdns",
  68. "packetmeta-id", "async"
  69. ]
  70. # Private features
  71. # Features starting with "_" are considered private. They should not be enabled by
  72. # other crates, and they are not considered semver-stable.
  73. "_proto-fragmentation" = []
  74. # BEGIN AUTOGENERATED CONFIG FEATURES
  75. # Generated by gen_config.py. DO NOT EDIT.
  76. iface-max-addr-count-1 = []
  77. iface-max-addr-count-2 = [] # Default
  78. iface-max-addr-count-3 = []
  79. iface-max-addr-count-4 = []
  80. iface-max-addr-count-5 = []
  81. iface-max-addr-count-6 = []
  82. iface-max-addr-count-7 = []
  83. iface-max-addr-count-8 = []
  84. iface-max-multicast-group-count-1 = []
  85. iface-max-multicast-group-count-2 = []
  86. iface-max-multicast-group-count-3 = []
  87. iface-max-multicast-group-count-4 = [] # Default
  88. iface-max-multicast-group-count-5 = []
  89. iface-max-multicast-group-count-6 = []
  90. iface-max-multicast-group-count-7 = []
  91. iface-max-multicast-group-count-8 = []
  92. iface-max-multicast-group-count-16 = []
  93. iface-max-multicast-group-count-32 = []
  94. iface-max-multicast-group-count-64 = []
  95. iface-max-multicast-group-count-128 = []
  96. iface-max-multicast-group-count-256 = []
  97. iface-max-multicast-group-count-512 = []
  98. iface-max-multicast-group-count-1024 = []
  99. iface-max-sixlowpan-address-context-count-1 = []
  100. iface-max-sixlowpan-address-context-count-2 = []
  101. iface-max-sixlowpan-address-context-count-3 = []
  102. iface-max-sixlowpan-address-context-count-4 = [] # Default
  103. iface-max-sixlowpan-address-context-count-5 = []
  104. iface-max-sixlowpan-address-context-count-6 = []
  105. iface-max-sixlowpan-address-context-count-7 = []
  106. iface-max-sixlowpan-address-context-count-8 = []
  107. iface-max-sixlowpan-address-context-count-16 = []
  108. iface-max-sixlowpan-address-context-count-32 = []
  109. iface-max-sixlowpan-address-context-count-64 = []
  110. iface-max-sixlowpan-address-context-count-128 = []
  111. iface-max-sixlowpan-address-context-count-256 = []
  112. iface-max-sixlowpan-address-context-count-512 = []
  113. iface-max-sixlowpan-address-context-count-1024 = []
  114. iface-neighbor-cache-count-1 = []
  115. iface-neighbor-cache-count-2 = []
  116. iface-neighbor-cache-count-3 = []
  117. iface-neighbor-cache-count-4 = [] # Default
  118. iface-neighbor-cache-count-5 = []
  119. iface-neighbor-cache-count-6 = []
  120. iface-neighbor-cache-count-7 = []
  121. iface-neighbor-cache-count-8 = []
  122. iface-neighbor-cache-count-16 = []
  123. iface-neighbor-cache-count-32 = []
  124. iface-neighbor-cache-count-64 = []
  125. iface-neighbor-cache-count-128 = []
  126. iface-neighbor-cache-count-256 = []
  127. iface-neighbor-cache-count-512 = []
  128. iface-neighbor-cache-count-1024 = []
  129. iface-max-route-count-1 = []
  130. iface-max-route-count-2 = [] # Default
  131. iface-max-route-count-3 = []
  132. iface-max-route-count-4 = []
  133. iface-max-route-count-5 = []
  134. iface-max-route-count-6 = []
  135. iface-max-route-count-7 = []
  136. iface-max-route-count-8 = []
  137. iface-max-route-count-16 = []
  138. iface-max-route-count-32 = []
  139. iface-max-route-count-64 = []
  140. iface-max-route-count-128 = []
  141. iface-max-route-count-256 = []
  142. iface-max-route-count-512 = []
  143. iface-max-route-count-1024 = []
  144. fragmentation-buffer-size-256 = []
  145. fragmentation-buffer-size-512 = []
  146. fragmentation-buffer-size-1024 = []
  147. fragmentation-buffer-size-1500 = [] # Default
  148. fragmentation-buffer-size-2048 = []
  149. fragmentation-buffer-size-4096 = []
  150. fragmentation-buffer-size-8192 = []
  151. fragmentation-buffer-size-16384 = []
  152. fragmentation-buffer-size-32768 = []
  153. fragmentation-buffer-size-65536 = []
  154. assembler-max-segment-count-1 = []
  155. assembler-max-segment-count-2 = []
  156. assembler-max-segment-count-3 = []
  157. assembler-max-segment-count-4 = [] # Default
  158. assembler-max-segment-count-8 = []
  159. assembler-max-segment-count-16 = []
  160. assembler-max-segment-count-32 = []
  161. reassembly-buffer-size-256 = []
  162. reassembly-buffer-size-512 = []
  163. reassembly-buffer-size-1024 = []
  164. reassembly-buffer-size-1500 = [] # Default
  165. reassembly-buffer-size-2048 = []
  166. reassembly-buffer-size-4096 = []
  167. reassembly-buffer-size-8192 = []
  168. reassembly-buffer-size-16384 = []
  169. reassembly-buffer-size-32768 = []
  170. reassembly-buffer-size-65536 = []
  171. reassembly-buffer-count-1 = [] # Default
  172. reassembly-buffer-count-2 = []
  173. reassembly-buffer-count-3 = []
  174. reassembly-buffer-count-4 = []
  175. reassembly-buffer-count-8 = []
  176. reassembly-buffer-count-16 = []
  177. reassembly-buffer-count-32 = []
  178. dns-max-result-count-1 = [] # Default
  179. dns-max-result-count-2 = []
  180. dns-max-result-count-3 = []
  181. dns-max-result-count-4 = []
  182. dns-max-result-count-8 = []
  183. dns-max-result-count-16 = []
  184. dns-max-result-count-32 = []
  185. dns-max-server-count-1 = [] # Default
  186. dns-max-server-count-2 = []
  187. dns-max-server-count-3 = []
  188. dns-max-server-count-4 = []
  189. dns-max-server-count-8 = []
  190. dns-max-server-count-16 = []
  191. dns-max-server-count-32 = []
  192. dns-max-name-size-64 = []
  193. dns-max-name-size-128 = []
  194. dns-max-name-size-255 = [] # Default
  195. rpl-relations-buffer-count-1 = []
  196. rpl-relations-buffer-count-2 = []
  197. rpl-relations-buffer-count-4 = []
  198. rpl-relations-buffer-count-8 = []
  199. rpl-relations-buffer-count-16 = [] # Default
  200. rpl-relations-buffer-count-32 = []
  201. rpl-relations-buffer-count-64 = []
  202. rpl-relations-buffer-count-128 = []
  203. rpl-parents-buffer-count-2 = []
  204. rpl-parents-buffer-count-4 = []
  205. rpl-parents-buffer-count-8 = [] # Default
  206. rpl-parents-buffer-count-16 = []
  207. rpl-parents-buffer-count-32 = []
  208. # END AUTOGENERATED CONFIG FEATURES
  209. [[example]]
  210. name = "packet2pcap"
  211. path = "utils/packet2pcap.rs"
  212. required-features = ["std"]
  213. [[example]]
  214. name = "tcpdump"
  215. required-features = ["std", "phy-raw_socket", "proto-ipv4"]
  216. [[example]]
  217. name = "httpclient"
  218. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-ipv6", "socket-tcp"]
  219. [[example]]
  220. name = "ping"
  221. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-ipv6", "socket-icmp"]
  222. [[example]]
  223. name = "server"
  224. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
  225. [[example]]
  226. name = "client"
  227. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
  228. [[example]]
  229. name = "loopback"
  230. required-features = ["log", "medium-ethernet", "proto-ipv4", "socket-tcp"]
  231. [[example]]
  232. name = "multicast"
  233. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-igmp", "socket-udp"]
  234. [[example]]
  235. name = "benchmark"
  236. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-raw", "socket-udp"]
  237. [[example]]
  238. name = "dhcp_client"
  239. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-dhcpv4", "socket-raw"]
  240. [[example]]
  241. name = "sixlowpan"
  242. required-features = ["std", "medium-ieee802154", "phy-raw_socket", "proto-sixlowpan", "proto-sixlowpan-fragmentation", "socket-udp"]
  243. [[example]]
  244. name = "sixlowpan_benchmark"
  245. required-features = ["std", "medium-ieee802154", "phy-raw_socket", "proto-sixlowpan", "proto-sixlowpan-fragmentation", "socket-udp"]
  246. [[example]]
  247. name = "dns"
  248. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-dns"]
  249. [profile.release]
  250. debug = 2