mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
61 lines
1.9 KiB
TOML
61 lines
1.9 KiB
TOML
[package]
|
|
name = "embassy-net"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
|
|
[package.metadata.embassy_docs]
|
|
src_base = "https://github.com/embassy-rs/embassy/blob/embassy-net-v$VERSION/embassy-net/src/"
|
|
src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-net/src/"
|
|
features = ["defmt", "tcp", "dns", "dhcpv4", "proto-ipv6", "medium-ethernet", "medium-ip"]
|
|
target = "thumbv7em-none-eabi"
|
|
|
|
[features]
|
|
default = []
|
|
std = []
|
|
|
|
defmt = ["dep:defmt", "smoltcp/defmt", "embassy-net-driver/defmt"]
|
|
|
|
nightly = ["dep:embedded-io", "embedded-io?/async", "dep:embedded-nal-async"]
|
|
unstable-traits = []
|
|
|
|
udp = ["smoltcp/socket-udp"]
|
|
tcp = ["smoltcp/socket-tcp"]
|
|
dns = ["smoltcp/socket-dns"]
|
|
dhcpv4 = ["medium-ethernet", "smoltcp/socket-dhcpv4"]
|
|
proto-ipv6 = ["smoltcp/proto-ipv6"]
|
|
medium-ethernet = ["smoltcp/medium-ethernet"]
|
|
medium-ip = ["smoltcp/medium-ip"]
|
|
|
|
[dependencies]
|
|
|
|
defmt = { version = "0.3", optional = true }
|
|
log = { version = "0.4.14", optional = true }
|
|
|
|
embassy-net-driver = { version = "0.1.0", path = "../embassy-net-driver" }
|
|
embassy-time = { version = "0.1.0", path = "../embassy-time" }
|
|
embassy-sync = { version = "0.1.0", path = "../embassy-sync" }
|
|
embedded-io = { version = "0.4.0", optional = true }
|
|
|
|
managed = { version = "0.8.0", default-features = false, features = [ "map" ] }
|
|
heapless = { version = "0.7.5", default-features = false }
|
|
as-slice = "0.2.1"
|
|
generic-array = { version = "0.14.4", default-features = false }
|
|
stable_deref_trait = { version = "1.2.0", default-features = false }
|
|
futures = { version = "0.3.17", default-features = false, features = [ "async-await" ] }
|
|
atomic-pool = "1.0"
|
|
embedded-nal-async = { version = "0.3.0", optional = true }
|
|
atomic-polyfill = { version = "1.0" }
|
|
|
|
[dependencies.smoltcp]
|
|
version = "0.8.0"
|
|
git = "https://github.com/smoltcp-rs/smoltcp"
|
|
rev = "7b631c27cefe9b29e322a507c076b4156f477ee2"
|
|
default-features = false
|
|
features = [
|
|
"proto-ipv4",
|
|
"socket",
|
|
"async",
|
|
]
|