2021-02-03 04:09:37 +00:00
|
|
|
[package]
|
|
|
|
name = "embassy-net"
|
2024-01-11 21:57:29 +00:00
|
|
|
version = "0.4.0"
|
2022-06-18 00:15:48 +00:00
|
|
|
edition = "2021"
|
2022-10-07 10:41:56 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
2023-06-29 17:51:16 +00:00
|
|
|
description = "Async TCP/IP network stack for embedded systems"
|
|
|
|
repository = "https://github.com/embassy-rs/embassy"
|
2024-01-11 23:32:47 +00:00
|
|
|
documentation = "https://docs.embassy.dev/embassy-net"
|
2023-06-29 17:51:16 +00:00
|
|
|
categories = [
|
|
|
|
"embedded",
|
|
|
|
"no-std",
|
|
|
|
"asynchronous",
|
2023-08-24 23:03:24 +00:00
|
|
|
"network-programming",
|
2023-06-29 17:51:16 +00:00
|
|
|
]
|
2022-04-05 19:05:09 +00:00
|
|
|
|
|
|
|
[package.metadata.embassy_docs]
|
|
|
|
src_base = "https://github.com/embassy-rs/embassy/blob/embassy-net-v$VERSION/embassy-net/src/"
|
2022-06-26 21:55:38 +00:00
|
|
|
src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-net/src/"
|
2024-04-10 07:07:20 +00:00
|
|
|
features = ["defmt", "tcp", "udp", "raw", "dns", "dhcpv4", "proto-ipv6", "medium-ethernet", "medium-ip", "medium-ieee802154", "igmp", "dhcpv4-hostname"]
|
2022-08-15 18:42:36 +00:00
|
|
|
target = "thumbv7em-none-eabi"
|
2022-04-05 19:05:09 +00:00
|
|
|
|
2023-05-14 22:39:57 +00:00
|
|
|
[package.metadata.docs.rs]
|
2024-04-10 07:07:20 +00:00
|
|
|
features = ["defmt", "tcp", "udp", "raw", "dns", "dhcpv4", "proto-ipv6", "medium-ethernet", "medium-ip", "medium-ieee802154", "igmp", "dhcpv4-hostname"]
|
2023-05-14 22:39:57 +00:00
|
|
|
|
2021-02-03 04:09:37 +00:00
|
|
|
[features]
|
2022-04-12 18:14:26 +00:00
|
|
|
default = []
|
2023-02-10 18:04:54 +00:00
|
|
|
std = []
|
2021-02-03 04:09:37 +00:00
|
|
|
|
2023-12-22 22:20:43 +00:00
|
|
|
## Enable defmt
|
2023-11-14 07:30:39 +00:00
|
|
|
defmt = ["dep:defmt", "smoltcp/defmt", "embassy-net-driver/defmt", "heapless/defmt-03"]
|
2022-04-12 18:14:26 +00:00
|
|
|
|
2024-01-10 13:06:15 +00:00
|
|
|
## Trace all raw received and transmitted packets using defmt or log.
|
|
|
|
packet-trace = []
|
|
|
|
|
2023-12-22 22:20:43 +00:00
|
|
|
#! Many of the following feature flags are re-exports of smoltcp feature flags. See
|
|
|
|
#! the [smoltcp feature flag documentation](https://github.com/smoltcp-rs/smoltcp#feature-flags)
|
|
|
|
#! for more details
|
|
|
|
|
|
|
|
## Enable UDP support
|
2022-07-28 08:25:47 +00:00
|
|
|
udp = ["smoltcp/socket-udp"]
|
2024-04-04 13:51:25 +00:00
|
|
|
## Enable Raw support
|
|
|
|
raw = ["smoltcp/socket-raw"]
|
2023-12-22 22:20:43 +00:00
|
|
|
## Enable TCP support
|
2021-04-07 17:06:45 +00:00
|
|
|
tcp = ["smoltcp/socket-tcp"]
|
2023-12-22 22:20:43 +00:00
|
|
|
## Enable DNS support
|
2023-01-31 21:06:41 +00:00
|
|
|
dns = ["smoltcp/socket-dns", "smoltcp/proto-dns"]
|
2023-12-22 22:20:43 +00:00
|
|
|
## Enable DHCPv4 support
|
2023-06-01 15:10:18 +00:00
|
|
|
dhcpv4 = ["proto-ipv4", "medium-ethernet", "smoltcp/socket-dhcpv4"]
|
2023-12-22 22:20:43 +00:00
|
|
|
## Enable DHCPv4 support with hostname
|
2023-10-06 18:47:31 +00:00
|
|
|
dhcpv4-hostname = ["dhcpv4"]
|
2023-12-22 22:20:43 +00:00
|
|
|
## Enable IPv4 support
|
2023-06-01 15:10:18 +00:00
|
|
|
proto-ipv4 = ["smoltcp/proto-ipv4"]
|
2023-12-22 22:20:43 +00:00
|
|
|
## Enable IPv6 support
|
2022-06-01 11:48:09 +00:00
|
|
|
proto-ipv6 = ["smoltcp/proto-ipv6"]
|
2023-12-22 22:20:43 +00:00
|
|
|
## Enable the Ethernet medium
|
2021-04-12 19:00:23 +00:00
|
|
|
medium-ethernet = ["smoltcp/medium-ethernet"]
|
2023-12-22 22:20:43 +00:00
|
|
|
## Enable the IP medium
|
2021-04-12 19:00:23 +00:00
|
|
|
medium-ip = ["smoltcp/medium-ip"]
|
2023-12-22 22:20:43 +00:00
|
|
|
## Enable the IEEE 802.15.4 medium
|
2023-07-16 00:02:04 +00:00
|
|
|
medium-ieee802154 = ["smoltcp/medium-ieee802154"]
|
2023-12-22 22:20:43 +00:00
|
|
|
## Enable IGMP support
|
2023-03-06 16:50:57 +00:00
|
|
|
igmp = ["smoltcp/proto-igmp"]
|
2021-04-07 17:06:45 +00:00
|
|
|
|
2021-02-03 04:09:37 +00:00
|
|
|
[dependencies]
|
|
|
|
|
2021-11-15 16:08:51 +00:00
|
|
|
defmt = { version = "0.3", optional = true }
|
2021-09-10 22:10:46 +00:00
|
|
|
log = { version = "0.4.14", optional = true }
|
2021-02-03 04:09:37 +00:00
|
|
|
|
2023-12-23 19:41:33 +00:00
|
|
|
smoltcp = { version = "0.11.0", default-features = false, features = [
|
2023-02-07 17:15:26 +00:00
|
|
|
"socket",
|
|
|
|
"async",
|
2023-06-25 23:59:25 +00:00
|
|
|
] }
|
2023-02-07 17:15:26 +00:00
|
|
|
|
2023-10-15 17:38:42 +00:00
|
|
|
embassy-net-driver = { version = "0.2.0", path = "../embassy-net-driver" }
|
2024-01-11 21:57:29 +00:00
|
|
|
embassy-time = { version = "0.3.0", path = "../embassy-time" }
|
2024-05-29 10:09:55 +00:00
|
|
|
embassy-sync = { version = "0.6.0", path = "../embassy-sync" }
|
2023-11-29 16:23:48 +00:00
|
|
|
embedded-io-async = { version = "0.6.1" }
|
2021-02-03 04:09:37 +00:00
|
|
|
|
2022-08-17 21:40:16 +00:00
|
|
|
managed = { version = "0.8.0", default-features = false, features = [ "map" ] }
|
2023-11-08 21:59:58 +00:00
|
|
|
heapless = { version = "0.8", default-features = false }
|
2023-11-29 16:23:48 +00:00
|
|
|
embedded-nal-async = { version = "0.7.1" }
|
2023-12-22 22:20:43 +00:00
|
|
|
document-features = "0.2.7"
|