Cargo.toml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. [package]
  2. name = "smoltcp"
  3. version = "0.8.2"
  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.3", optional = true }
  24. [dev-dependencies]
  25. env_logger = "0.9"
  26. getopts = "0.2"
  27. rand = "0.8"
  28. url = "2.0"
  29. [features]
  30. std = ["managed/std"]
  31. alloc = ["managed/alloc"]
  32. verbose = []
  33. "medium-ethernet" = ["socket"]
  34. "medium-ip" = ["socket"]
  35. "medium-ieee802154" = ["socket", "proto-sixlowpan"]
  36. "phy-raw_socket" = ["std", "libc"]
  37. "phy-tuntap_interface" = ["std", "libc", "medium-ethernet"]
  38. "proto-ipv4" = []
  39. "proto-igmp" = ["proto-ipv4"]
  40. "proto-dhcpv4" = ["proto-ipv4"]
  41. "proto-ipv6" = []
  42. "proto-sixlowpan" = ["proto-ipv6"]
  43. "socket" = []
  44. "socket-raw" = ["socket"]
  45. "socket-udp" = ["socket"]
  46. "socket-tcp" = ["socket"]
  47. "socket-icmp" = ["socket"]
  48. "socket-dhcpv4" = ["socket", "medium-ethernet", "proto-dhcpv4"]
  49. "async" = []
  50. default = [
  51. "std", "log", # needed for `cargo test --no-default-features --features default` :/
  52. "medium-ethernet", "medium-ip", "medium-ieee802154",
  53. "phy-raw_socket", "phy-tuntap_interface",
  54. "proto-ipv4", "proto-igmp", "proto-dhcpv4", "proto-ipv6", "proto-sixlowpan",
  55. "socket-raw", "socket-icmp", "socket-udp", "socket-tcp", "socket-dhcpv4",
  56. "async"
  57. ]
  58. # experimental; do not use; no guarantees provided that this feature will be kept
  59. "rust-1_28" = []
  60. [[example]]
  61. name = "packet2pcap"
  62. path = "utils/packet2pcap.rs"
  63. required-features = ["std"]
  64. [[example]]
  65. name = "tcpdump"
  66. required-features = ["std", "phy-raw_socket", "proto-ipv4"]
  67. [[example]]
  68. name = "httpclient"
  69. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-ipv6", "socket-tcp"]
  70. [[example]]
  71. name = "ping"
  72. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-ipv6", "socket-icmp"]
  73. [[example]]
  74. name = "server"
  75. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
  76. [[example]]
  77. name = "client"
  78. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
  79. [[example]]
  80. name = "loopback"
  81. required-features = ["log", "medium-ethernet", "proto-ipv4", "socket-tcp"]
  82. [[example]]
  83. name = "multicast"
  84. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-igmp", "socket-udp"]
  85. [[example]]
  86. name = "benchmark"
  87. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-raw", "socket-udp"]
  88. [[example]]
  89. name = "dhcp_client"
  90. required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-dhcpv4", "socket-raw"]
  91. [[example]]
  92. name = "sixlowpan"
  93. required-features = ["std", "medium-ieee802154", "phy-raw_socket", "proto-sixlowpan", "socket-udp"]
  94. [profile.release]
  95. debug = 2