Cargo Features

[dependencies]
ethercrab = { version = "0.4.1", default-features = false, features = ["std", "defmt", "log", "serde"] }
default = std

The std feature is set by default whenever ethercrab is added without default-features = false somewhere in the dependency tree.

std default = log

Enables async-io, pnet_datalink, phy-raw_socket of smoltcp, std of embedded-io-async, ethercrab-wire, and futures-lite

Affects eeprom::file_reader, ethercrab::std

defmt

Enables defmt, defmt of smoltcp and defmt-03 of embedded-io-async, ethercrab-wire, and heapless

heapless:

Implement defmt::Format from defmt v0.3

log std

Enables log

serde

Enables serde, serde of bitflags

__internals

Development only - DO NOT USE

Affects ethercrab::internals