Juraj Sadel e6cdd8eb3c
Add xtask command check-unused-deps and remove unused deps/features (#3967)
* Add xtask command check-unused-deps and remove unused deps/features

* fix changelog

* reviews, move check into nightly-ci

* reviews

* readd document-features to esp-preemt

* Just cargo machete
2025-08-27 08:48:58 +00:00

73 lines
2.1 KiB
TOML

[package]
name = "esp-bootloader-esp-idf"
version = "0.2.0"
edition = "2024"
rust-version = "1.86.0"
description = "Functionality related to the esp-idf bootloader"
documentation = "https://docs.espressif.com/projects/rust/esp-bootloader-esp-idf/latest/"
keywords = ["esp32", "espressif", "no-std"]
categories = ["embedded", "hardware-support", "no-std"]
repository = "https://github.com/esp-rs/esp-hal"
license = "MIT OR Apache-2.0"
[package.metadata.docs.rs]
default-target = "riscv32imac-unknown-none-elf"
[lib]
bench = false
test = true
[dependencies]
cfg-if = "1.0.0"
defmt = { version = "1.0.1", optional = true }
document-features = "0.2.11"
esp-config = { version = "0.5.0", path = "../esp-config" }
esp-rom-sys = { version = "0.1.1", path = "../esp-rom-sys", optional = true }
embedded-storage = "0.3.1"
log-04 = { package = "log", version = "0.4.26", optional = true }
strum = { version = "0.27.1", default-features = false, features = ["derive"] }
crc = { version = "3.3.0", optional = true }
md-5 = { version = "0.10.6", default-features = false, optional = true }
[build-dependencies]
jiff = { version = "0.2.13", default-features = false, features = ["std"] }
esp-config = { version = "0.5.0", path = "../esp-config", features = ["build"] }
[features]
default = ["validation"]
## Enable MD5 validation of the partition table.
validation = []
## Enable support for version 0.4 of the `log` crate
log-04 = ["dep:log-04"]
## Enable support for `defmt`
defmt = ["dep:defmt"]
# Replace ROM functions with pure Rust implementations, needed for tests.
std = ["dep:crc", "dep:md-5"]
#! ### Chip selection
#! One of the following features must be enabled to select the target chip:
##
esp32c2 = ["esp-rom-sys/esp32c2"]
##
esp32c3 = ["esp-rom-sys/esp32c3"]
##
esp32c6 = ["esp-rom-sys/esp32c6"]
##
esp32h2 = ["esp-rom-sys/esp32h2"]
##
esp32 = ["esp-rom-sys/esp32"]
##
esp32s2 = ["esp-rom-sys/esp32s2"]
##
esp32s3 = ["esp-rom-sys/esp32s3"]
# "md-5" is hidden behind `std` feature and `cargo machete` incorrectly marks it as unused.
[package.metadata.cargo-machete]
ignored = ["md-5"]