Cargo Features

embassy-net has no features set by default.

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

Enable defmt

Enables ip_in_core of 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

raw

Enable Raw support

Enables socket-raw of smoltcp

Affects embassy-net::raw

tcp

Enable TCP support

Enables socket-tcp of smoltcp

Affects embassy-net::tcp

dns mdns?

Enable DNS support

Enables proto-dns and socket-dns of smoltcp

Affects embassy-net::dns

mdns = dns

Enable mDNS support

Enables socket-mdns of smoltcp

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

multicast

Enable multicast support (for both ipv4 and/or ipv6 if enabled)

Enables multicast of smoltcp

Features from optional dependencies

log implicit feature

Enables log

log:

A lightweight logging facade for Rust