mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-27 04:10:28 +00:00

* Replace unsafe with new std API * bump * Fix link in readme --------- Co-authored-by: Dániel Buga <bugadani@gmail.com>
84 lines
2.3 KiB
TOML
84 lines
2.3 KiB
TOML
[package]
|
|
name = "esp-bootloader-esp-idf"
|
|
version = "0.2.0"
|
|
edition = "2024"
|
|
rust-version = "1.88.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.espressif]
|
|
doc-config = { features = ["defmt", "validation"] }
|
|
check-configs = [
|
|
{ features = [] },
|
|
{ features = ["log-04"] },
|
|
{ features = ["defmt", "validation"] },
|
|
]
|
|
clippy-configs = [
|
|
{ features = ["defmt", "validation"] },
|
|
]
|
|
|
|
[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"]
|