aboutsummaryrefslogtreecommitdiff
path: root/embassy-net/Cargo.toml
diff options
context:
space:
mode:
authorBarnaby Walters <[email protected]>2023-12-22 23:20:43 +0100
committerBarnaby Walters <[email protected]>2023-12-22 23:20:43 +0100
commitd63590cb61e0fb9164996677be790c4213ef4a9e (patch)
treef98887f771284018f0c5c5db496e14b646e86205 /embassy-net/Cargo.toml
parent87c03037e320ce30c0cd34fe97e0365e1b11aa9a (diff)
[embassy-net] Auto-documented feature flags
Diffstat (limited to 'embassy-net/Cargo.toml')
-rw-r--r--embassy-net/Cargo.toml17
1 files changed, 17 insertions, 0 deletions
diff --git a/embassy-net/Cargo.toml b/embassy-net/Cargo.toml
index 0c07e3651..e6c5ea74f 100644
--- a/embassy-net/Cargo.toml
+++ b/embassy-net/Cargo.toml
@@ -25,18 +25,34 @@ features = ["defmt", "tcp", "udp", "dns", "dhcpv4", "proto-ipv6", "medium-ethern
25default = [] 25default = []
26std = [] 26std = []
27 27
28## Enable defmt
28defmt = ["dep:defmt", "smoltcp/defmt", "embassy-net-driver/defmt", "heapless/defmt-03"] 29defmt = ["dep:defmt", "smoltcp/defmt", "embassy-net-driver/defmt", "heapless/defmt-03"]
29 30
31#! Many of the following feature flags are re-exports of smoltcp feature flags. See
32#! the [smoltcp feature flag documentation](https://github.com/smoltcp-rs/smoltcp#feature-flags)
33#! for more details
34
35## Enable UDP support
30udp = ["smoltcp/socket-udp"] 36udp = ["smoltcp/socket-udp"]
37## Enable TCP support
31tcp = ["smoltcp/socket-tcp"] 38tcp = ["smoltcp/socket-tcp"]
39## Enable DNS support
32dns = ["smoltcp/socket-dns", "smoltcp/proto-dns"] 40dns = ["smoltcp/socket-dns", "smoltcp/proto-dns"]
41## Enable DHCPv4 support
33dhcpv4 = ["proto-ipv4", "medium-ethernet", "smoltcp/socket-dhcpv4"] 42dhcpv4 = ["proto-ipv4", "medium-ethernet", "smoltcp/socket-dhcpv4"]
43## Enable DHCPv4 support with hostname
34dhcpv4-hostname = ["dhcpv4"] 44dhcpv4-hostname = ["dhcpv4"]
45## Enable IPv4 support
35proto-ipv4 = ["smoltcp/proto-ipv4"] 46proto-ipv4 = ["smoltcp/proto-ipv4"]
47## Enable IPv6 support
36proto-ipv6 = ["smoltcp/proto-ipv6"] 48proto-ipv6 = ["smoltcp/proto-ipv6"]
49## Enable the Ethernet medium
37medium-ethernet = ["smoltcp/medium-ethernet"] 50medium-ethernet = ["smoltcp/medium-ethernet"]
51## Enable the IP medium
38medium-ip = ["smoltcp/medium-ip"] 52medium-ip = ["smoltcp/medium-ip"]
53## Enable the IEEE 802.15.4 medium
39medium-ieee802154 = ["smoltcp/medium-ieee802154"] 54medium-ieee802154 = ["smoltcp/medium-ieee802154"]
55## Enable IGMP support
40igmp = ["smoltcp/proto-igmp"] 56igmp = ["smoltcp/proto-igmp"]
41 57
42[dependencies] 58[dependencies]
@@ -62,3 +78,4 @@ stable_deref_trait = { version = "1.2.0", default-features = false }
62futures = { version = "0.3.17", default-features = false, features = [ "async-await" ] } 78futures = { version = "0.3.17", default-features = false, features = [ "async-await" ] }
63atomic-pool = "1.0" 79atomic-pool = "1.0"
64embedded-nal-async = { version = "0.7.1" } 80embedded-nal-async = { version = "0.7.1" }
81document-features = "0.2.7"