Cargo Features

embassy_net has no features set by default.

[dependencies]
embassy-net = { version = "0.4.0", features = ["std", "defmt", "packet-trace", "udp", "tcp", "dns", "dhcpv4", "dhcpv4-hostname", "proto-ipv4", "proto-ipv6", "medium-ethernet", "medium-ip", "medium-ieee802154", "igmp", "log"] }
std
defmt

Enable defmt

Enables defmt, defmt of embassy-net-driver, defmt-03 of heapless, defmt of smoltcp

packet-trace

Trace all raw received and transmitted packets using defmt or log.

udp

Many of the following feature flags are re-exports of smoltcp feature flags. See the smoltcp feature flag documentation for more details

Enable UDP support

Enables socket-udp of smoltcp

Affects embassy-net::udp

tcp

Enable TCP support

Enables socket-tcp of smoltcp

Affects embassy-net::tcp

dns

Enable DNS support

Enables proto-dns and socket-dns of smoltcp

Affects embassy-net::dns

dhcpv4 dhcpv4-hostname? = medium-ethernet, proto-ipv4

Enable DHCPv4 support

Enables socket-dhcpv4 of smoltcp

Affects embassy-net::DhcpConfig

dhcpv4-hostname = dhcpv4

Enable DHCPv4 support with hostname

Affects embassy-net::DhcpConfig.hostname

proto-ipv4 dhcpv4?

Enable IPv4 support

Enables proto-ipv4 of smoltcp

Affects embassy-net::StaticConfigV4, embassy-net::Config.ipv4, embassy-net::ConfigV4

proto-ipv6

Enable IPv6 support

Enables proto-ipv6 of smoltcp

Affects embassy-net::StaticConfigV6, embassy-net::Config.ipv6, embassy-net::ConfigV6

medium-ethernet dhcpv4?

Enable the Ethernet medium

Enables medium-ethernet of smoltcp

medium-ip

Enable the IP medium

Enables medium-ip of smoltcp

medium-ieee802154

Enable the IEEE 802.15.4 medium

Enables medium-ieee802154 of smoltcp

igmp

Enable IGMP support

Enables proto-igmp of smoltcp

Features from optional dependencies

log implicit feature

Enables log

log:

A lightweight logging facade for Rust