Cargo Features

[dependencies]
esp-idf-svc = { version = "0.49.1", default-features = false, features = ["std", "alloc", "nightly", "experimental", "critical-section", "wake-from-isr", "embassy-sync", "native", "pio", "alloc_handler", "panic_handler", "binstart", "libstart", "embassy-time-driver"] }
default = binstart, std

These default features are set whenever esp-idf-svc is added without default-features = false somewhere in the dependency tree.

std default = alloc

Enables std of embedded-svc, esp-idf-hal, and log

alloc std

Enables alloc of embedded-svc, esp-idf-hal, and uncased

Affects eth::AsyncEth, http::client, http::server, esp-idf-svc::eventloop, esp-idf-svc::http, esp-idf-svc::log, esp-idf-svc::mdns, esp-idf-svc::mqtt, esp-idf-svc::netif, esp-idf-svc::nvs, esp-idf-svc::sntp, esp-idf-svc::timer, esp-idf-svc::fs, client::MqttClientConfiguration.psk, netif::AsyncNetif, cstr::RawCstrs, cstr::nul_to_invalid_arg, cstr::to_cstring_arg, private::unblocker, private::zerocopy

nightly

Enables nightly of embedded-svc and esp-idf-hal

experimental

Enables experimental of embedded-svc

Affects esp-idf-svc::bt

critical-section

Propagated esp-idf-hal features

Enables critical-section of esp-idf-hal

wake-from-isr

Enables wake-from-isr of esp-idf-hal

esp-idf-hal:

Only enable if you plan to use the edge-executor crate

embassy-sync

Enables embassy-sync of esp-idf-hal

esp-idf-hal:

For now, the dependecy on the embassy-sync crate is non-optional, but this might change in future

native

The next are propagated from esp-idf-sys via esp-idf-hal

Enables native of esp-idf-hal

pio

Enables pio of esp-idf-hal

alloc_handler

Enables alloc_handler of esp-idf-hal

panic_handler

Enables panic_handler of esp-idf-hal

binstart default

Enables binstart of esp-idf-hal

libstart

Enables libstart of esp-idf-hal

Features from optional dependencies

embassy-time-driver implicit feature

Enables embassy-time-driver

embassy-time-driver:

Driver trait for embassy-time

Affects timer::embassy_time_driver