Cargo.toml 8.8 KB

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