2016-12-10 17:23:40 +08:00
|
|
|
[package]
|
|
|
|
name = "smoltcp"
|
2021-01-20 07:23:19 +08:00
|
|
|
version = "0.7.0"
|
2020-12-27 07:11:30 +08:00
|
|
|
edition = "2018"
|
2016-12-10 17:23:40 +08:00
|
|
|
authors = ["whitequark <whitequark@whitequark.org>"]
|
2016-12-28 08:21:01 +08:00
|
|
|
description = "A TCP/IP stack designed for bare-metal, real-time systems without a heap."
|
|
|
|
documentation = "https://docs.rs/smoltcp/"
|
2021-01-20 07:23:19 +08:00
|
|
|
homepage = "https://github.com/smoltcp-rs/smoltcp"
|
|
|
|
repository = "https://github.com/smoltcp-rs/smoltcp.git"
|
2016-12-28 08:21:01 +08:00
|
|
|
readme = "README.md"
|
|
|
|
keywords = ["ip", "tcp", "udp", "ethernet", "network"]
|
2019-03-31 02:22:51 +08:00
|
|
|
categories = ["embedded", "network-programming"]
|
2016-12-17 13:14:47 +08:00
|
|
|
license = "0BSD"
|
2018-05-08 20:38:29 +08:00
|
|
|
# Each example should have an explicit `[[example]]` section here to
|
|
|
|
# ensure that the correct features are enabled.
|
|
|
|
autoexamples = false
|
2016-12-10 17:23:40 +08:00
|
|
|
|
|
|
|
[dependencies]
|
2021-03-17 23:13:18 +08:00
|
|
|
managed = { version = "0.8", default-features = false, features = ["map"] }
|
2016-12-31 06:28:11 +08:00
|
|
|
byteorder = { version = "1.0", default-features = false }
|
2019-07-23 20:10:25 +08:00
|
|
|
log = { version = "0.4.4", default-features = false, optional = true }
|
2016-12-11 00:25:43 +08:00
|
|
|
libc = { version = "0.2.18", optional = true }
|
2018-03-12 05:35:30 +08:00
|
|
|
bitflags = { version = "1.0", default-features = false }
|
2021-04-01 07:30:47 +08:00
|
|
|
defmt = { version = "0.2.0", optional = true }
|
2016-12-11 00:25:43 +08:00
|
|
|
|
2016-12-23 15:59:38 +08:00
|
|
|
[dev-dependencies]
|
2019-06-22 16:31:11 +08:00
|
|
|
env_logger = "0.5"
|
2016-12-31 09:04:39 +08:00
|
|
|
getopts = "0.2"
|
2017-12-18 22:53:09 +08:00
|
|
|
rand = "0.3"
|
|
|
|
url = "1.0"
|
2016-12-23 15:59:38 +08:00
|
|
|
|
2016-12-11 00:25:43 +08:00
|
|
|
[features]
|
2017-06-15 18:12:11 +08:00
|
|
|
std = ["managed/std"]
|
2017-03-05 13:49:38 +08:00
|
|
|
alloc = ["managed/alloc"]
|
2017-01-19 20:23:32 +08:00
|
|
|
verbose = []
|
2020-12-28 06:52:37 +08:00
|
|
|
"medium-ethernet" = ["socket"]
|
|
|
|
"medium-ip" = ["socket"]
|
2021-03-25 01:04:42 +08:00
|
|
|
"phy-raw_socket" = ["std", "libc", "medium-ethernet"]
|
|
|
|
"phy-tuntap_interface" = ["std", "libc", "medium-ethernet"]
|
2017-12-24 21:28:59 +08:00
|
|
|
"proto-ipv4" = []
|
2018-03-06 00:10:22 +08:00
|
|
|
"proto-igmp" = ["proto-ipv4"]
|
2021-04-07 07:31:53 +08:00
|
|
|
"proto-dhcpv4" = ["proto-ipv4"]
|
2017-11-02 11:55:10 +08:00
|
|
|
"proto-ipv6" = []
|
2021-02-01 23:45:32 +08:00
|
|
|
"socket" = []
|
|
|
|
"socket-raw" = ["socket"]
|
|
|
|
"socket-udp" = ["socket"]
|
|
|
|
"socket-tcp" = ["socket"]
|
|
|
|
"socket-icmp" = ["socket"]
|
2021-04-07 07:31:53 +08:00
|
|
|
"socket-dhcpv4" = ["socket", "medium-ethernet", "proto-dhcpv4"]
|
2020-10-20 19:22:46 +08:00
|
|
|
"async" = []
|
2021-04-01 07:30:47 +08:00
|
|
|
|
|
|
|
defmt-trace = []
|
|
|
|
defmt-debug = []
|
|
|
|
defmt-info = []
|
|
|
|
defmt-warn = []
|
|
|
|
defmt-error = []
|
|
|
|
|
2017-12-18 22:53:09 +08:00
|
|
|
default = [
|
2017-12-18 23:10:50 +08:00
|
|
|
"std", "log", # needed for `cargo test --no-default-features --features default` :/
|
2020-12-28 06:52:37 +08:00
|
|
|
"medium-ethernet", "medium-ip",
|
2021-03-25 01:04:42 +08:00
|
|
|
"phy-raw_socket", "phy-tuntap_interface",
|
2020-12-26 09:04:39 +08:00
|
|
|
"proto-ipv4", "proto-igmp", "proto-dhcpv4", "proto-ipv6",
|
2021-04-07 07:31:53 +08:00
|
|
|
"socket-raw", "socket-icmp", "socket-udp", "socket-tcp", "socket-dhcpv4",
|
2020-10-20 19:22:46 +08:00
|
|
|
"async"
|
2017-12-18 22:53:09 +08:00
|
|
|
]
|
2017-03-05 12:19:19 +08:00
|
|
|
|
2018-08-10 22:53:28 +08:00
|
|
|
# experimental; do not use; no guarantees provided that this feature will be kept
|
2018-10-29 15:05:08 +08:00
|
|
|
"rust-1_28" = []
|
2018-08-10 22:53:28 +08:00
|
|
|
|
2018-01-30 11:13:11 +08:00
|
|
|
[[example]]
|
|
|
|
name = "packet2pcap"
|
|
|
|
path = "utils/packet2pcap.rs"
|
|
|
|
required-features = ["std"]
|
|
|
|
|
2017-03-05 12:19:19 +08:00
|
|
|
[[example]]
|
|
|
|
name = "tcpdump"
|
2017-12-24 21:28:59 +08:00
|
|
|
required-features = ["std", "phy-raw_socket", "proto-ipv4"]
|
2017-03-05 12:19:19 +08:00
|
|
|
|
|
|
|
[[example]]
|
2017-12-22 16:54:58 +08:00
|
|
|
name = "httpclient"
|
2021-03-25 01:04:42 +08:00
|
|
|
required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-ipv6", "socket-tcp"]
|
2017-03-05 12:47:45 +08:00
|
|
|
|
|
|
|
[[example]]
|
2017-12-22 16:54:58 +08:00
|
|
|
name = "ping"
|
2021-03-25 01:04:42 +08:00
|
|
|
required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-ipv6", "socket-icmp"]
|
2017-06-18 18:14:46 +08:00
|
|
|
|
2017-12-18 22:53:09 +08:00
|
|
|
[[example]]
|
2017-12-22 16:54:58 +08:00
|
|
|
name = "server"
|
2021-03-25 01:04:42 +08:00
|
|
|
required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
|
2017-12-18 22:53:09 +08:00
|
|
|
|
2017-06-18 18:14:46 +08:00
|
|
|
[[example]]
|
2017-12-22 16:54:58 +08:00
|
|
|
name = "client"
|
2021-03-25 01:04:42 +08:00
|
|
|
required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
|
2017-07-14 11:17:55 +08:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "loopback"
|
2021-03-25 01:04:42 +08:00
|
|
|
required-features = ["log", "medium-ethernet", "proto-ipv4", "socket-tcp"]
|
2017-12-22 17:43:00 +08:00
|
|
|
|
2018-03-06 00:10:22 +08:00
|
|
|
[[example]]
|
|
|
|
name = "multicast"
|
2021-03-25 01:04:42 +08:00
|
|
|
required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-igmp", "socket-udp"]
|
2018-03-06 00:10:22 +08:00
|
|
|
|
2017-12-22 17:43:00 +08:00
|
|
|
[[example]]
|
2017-12-23 04:59:30 +08:00
|
|
|
name = "benchmark"
|
2021-03-25 01:04:42 +08:00
|
|
|
required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-raw", "socket-udp"]
|
2017-12-23 03:38:17 +08:00
|
|
|
|
2018-04-06 04:48:18 +08:00
|
|
|
[[example]]
|
|
|
|
name = "dhcp_client"
|
2021-03-25 01:04:42 +08:00
|
|
|
required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-dhcpv4", "socket-raw"]
|
2018-04-06 04:48:18 +08:00
|
|
|
|
2017-12-23 03:38:17 +08:00
|
|
|
[profile.release]
|
|
|
|
debug = 2
|