Cargo Features

[dependencies]
esp-storage = { version = "0.8.1", default-features = false, features = ["critical-section", "bytewise-read", "defmt", "esp32c2", "esp32c3", "esp32c6", "esp32h2", "esp32", "esp32s2", "esp32s3", "emulation"] }
default = critical-section

The critical-section feature is set by default whenever esp-storage is added without default-features = false somewhere in the dependency tree.

critical-section default

Place the flash operations in a critical section

bytewise-read

Bytewise read emulation

defmt

Implement defmt::Format on certain types.

Enables defmt

esp32c2

Chip selection

One of the following features must be enabled to select the target chip:

Enables esp32c2 and unstable of esp-hal and esp32c2 of esp-rom-sys and esp-sync

esp-sync:

Optional dependencies

esp32c3

Enables esp32c3 and unstable of esp-hal, esp32c3 of esp-rom-sys and esp-sync

esp32c6

Enables esp32c6 and unstable of esp-hal, esp32c6 of esp-rom-sys and esp-sync

esp32h2

Enables esp32h2 and unstable of esp-hal, esp32h2 of esp-rom-sys and esp-sync

esp32

Enables esp32 and unstable of esp-hal and esp32 of esp-rom-sys and esp-sync

esp-rom-sys:

Chip selection

One of the following features must be enabled to select the target chip:

esp32s2

Enables esp32s2 and unstable of esp-hal, esp32s2 of esp-rom-sys and esp-sync

esp32s3

Enables esp32s3 and unstable of esp-hal, esp32s3 of esp-rom-sys and esp-sync

emulation

Used for testing on a host.

Affects common::Flash

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

esp-hal esp32? esp32c2? esp32c3? esp32c6? esp32h2? esp32s2? esp32s3?
esp-sync esp32? esp32c2? esp32c3? esp32c6? esp32h2? esp32s2? esp32s3?
esp-rom-sys esp32? esp32c2? esp32c3? esp32c6? esp32h2? esp32s2? esp32s3?