renet/Cargo.toml

80 lines
2.1 KiB
TOML
Raw Normal View History

2016-12-10 17:23:40 +08:00
[package]
name = "smoltcp"
2017-09-23 04:01:40 +08:00
version = "0.4.0"
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/"
homepage = "https://github.com/m-labs/smoltcp"
repository = "https://github.com/m-labs/smoltcp.git"
readme = "README.md"
keywords = ["ip", "tcp", "udp", "ethernet", "network"]
2017-03-05 13:49:53 +08:00
categories = ["embedded"]
license = "0BSD"
2016-12-10 17:23:40 +08:00
[dependencies]
2018-01-06 06:44:25 +08:00
managed = { version = "0.5", default-features = false, features = ["map"] }
2016-12-31 06:28:11 +08:00
byteorder = { version = "1.0", default-features = false }
log = { version = "0.3", default-features = false, optional = true }
libc = { version = "0.2.18", optional = true }
2016-12-23 15:59:38 +08:00
[dev-dependencies]
2017-01-24 01:27:53 +08:00
env_logger = "0.4"
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"]
alloc = ["managed/alloc"]
verbose = []
"phy-raw_socket" = ["std", "libc"]
"phy-tap_interface" = ["std", "libc"]
2017-12-24 21:28:59 +08:00
"proto-ipv4" = []
"proto-ipv6" = []
"socket-raw" = []
"socket-udp" = []
"socket-tcp" = []
"socket-icmp" = []
2017-12-18 22:53:09 +08:00
default = [
"std", "log", # needed for `cargo test --no-default-features --features default` :/
"phy-raw_socket", "phy-tap_interface",
2017-12-24 21:28:59 +08:00
"proto-ipv4", "proto-ipv6",
2017-12-18 22:53:09 +08:00
"socket-raw", "socket-icmp", "socket-udp", "socket-tcp"
]
2017-03-05 12:19:19 +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]]
name = "httpclient"
2017-12-24 21:28:59 +08:00
required-features = ["std", "phy-tap_interface", "proto-ipv4", "socket-tcp"]
2017-03-05 12:47:45 +08:00
[[example]]
name = "ping"
2017-12-24 21:28:59 +08:00
required-features = ["std", "phy-tap_interface", "proto-ipv4", "socket-icmp"]
2017-06-18 18:14:46 +08:00
2017-12-18 22:53:09 +08:00
[[example]]
name = "server"
2017-12-24 21:28:59 +08:00
required-features = ["std", "phy-tap_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"
2017-12-24 21:28:59 +08:00
required-features = ["std", "phy-tap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
2017-07-14 11:17:55 +08:00
[[example]]
name = "loopback"
2017-12-24 21:28:59 +08:00
required-features = ["log", "proto-ipv4", "socket-tcp"]
[[example]]
name = "benchmark"
2017-12-24 21:28:59 +08:00
required-features = ["std", "phy-tap_interface", "proto-ipv4", "socket-tcp"]
[profile.release]
debug = 2