renet/Cargo.toml

119 lines
3.7 KiB
TOML
Raw Normal View History

2016-12-10 17:23:40 +08:00
[package]
name = "smoltcp"
2021-06-14 23:49:54 +08:00
version = "0.8.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"]
categories = ["embedded", "network-programming"]
license = "0BSD"
# 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 }
log = { version = "0.4.4", default-features = false, optional = true }
libc = { version = "0.2.18", optional = true }
bitflags = { version = "1.0", default-features = false }
defmt = { version = "0.3", optional = true }
rand_core = { version = "0.6.3", optional = true, default-features = false }
2016-12-23 15:59:38 +08:00
[dev-dependencies]
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
[features]
std = ["managed/std", "rand_core/std"]
alloc = ["managed/alloc"]
verbose = []
rand-custom-impl = []
"medium-ethernet" = ["socket"]
"medium-ip" = ["socket"]
"medium-ieee802154" = ["socket", "proto-sixlowpan"]
2021-04-29 18:04:46 +08:00
"phy-raw_socket" = ["std", "libc"]
2021-03-25 01:04:42 +08:00
"phy-tuntap_interface" = ["std", "libc", "medium-ethernet"]
2021-04-29 18:04:46 +08:00
2017-12-24 21:28:59 +08:00
"proto-ipv4" = []
"proto-igmp" = ["proto-ipv4"]
2021-04-07 07:31:53 +08:00
"proto-dhcpv4" = ["proto-ipv4"]
"proto-ipv6" = []
2021-04-29 18:04:46 +08:00
"proto-sixlowpan" = ["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"]
2021-04-29 18:04:46 +08:00
2020-10-20 19:22:46 +08:00
"async" = []
2021-04-01 07:30:47 +08:00
2017-12-18 22:53:09 +08:00
default = [
"std", "log", # needed for `cargo test --no-default-features --features default` :/
2021-04-29 18:04:46 +08:00
"medium-ethernet", "medium-ip", "medium-ieee802154",
2021-03-25 01:04:42 +08:00
"phy-raw_socket", "phy-tuntap_interface",
2021-04-29 18:04:46 +08:00
"proto-ipv4", "proto-igmp", "proto-dhcpv4", "proto-ipv6", "proto-sixlowpan",
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
# experimental; do not use; no guarantees provided that this feature will be kept
"rust-1_28" = []
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]]
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]]
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]]
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]]
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"]
[[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"]
[[example]]
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"]
[[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"]
2021-04-29 18:04:46 +08:00
[[example]]
name = "sixlowpan"
required-features = ["std", "medium-ieee802154", "phy-raw_socket", "proto-sixlowpan", "socket-udp"]
[profile.release]
debug = 2