Cargo.toml 8.8 KB

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