esp-hal/esp-riscv-rt/Cargo.toml
Dániel Buga 69776eb638
Even more cargo-batch, encode configs in Cargo.toml (#4134)
* Abstract out LP-core targeting packages

* Encode targets_lp_core in Cargo.toml

* Encode architecture compatibility in Cargo.toml

* Move semver_checked into Cargo.toml

* Cache parsed tomls

* Parse simple feature sets from Cargo.toml

* Move all basic feature rules to Cargo.toml

* Add check configs

* Limit command length on Windows

* Update cargo.rs

* Add clippy configs

* Use a single syntax, use a single doc-config line

* Fix known problems

* Run cargo check in CI command

* Fix more problems

* Fix esp-storage
2025-09-18 16:15:35 +00:00

44 lines
1.5 KiB
TOML

[package]
name = "esp-riscv-rt"
version = "0.12.0"
edition = "2024"
rust-version = "1.88.0"
description = "Minimal runtime / startup for RISC-V CPUs from Espressif"
documentation = "https://docs.espressif.com/projects/rust/esp-riscv-rt/latest/"
keywords = ["esp32", "espressif", "riscv", "runtime", "startup"]
categories = ["embedded", "hardware-support", "no-std"]
repository = "https://github.com/esp-rs/esp-hal"
license = "MIT OR Apache-2.0"
links = "esp-riscv-rt"
[package.metadata.espressif]
doc-config = { features = ["rtc-ram"] }
requires_target = ["riscv32imc-unknown-none-elf", "riscv32imac-unknown-none-elf"]
check-configs = [
{ features = [] },
{ features = ["rtc-ram"] },
{ features = ["no-mie-mip"] },
{ features = ["rtc-ram", "no-mie-mip"] },
]
clippy-configs = [{ features = ["rtc-ram"] }]
[lib]
bench = false
test = false
[dependencies]
document-features = "0.2.11"
defmt = {version = "1.0.1", optional = true}
riscv = "0.15.0"
# We use the `single-hart` feature since starting up harts != 0 is handled by the HAL, not the runtime.
riscv-rt = {version = "0.16.0", features = ["pre-init", "no-exceptions", "no-interrupts", "single-hart", "v-trap", "pre-default-start-trap"]}
[features]
## Indicate that the device does NOT support `mie` and `mip` CSRs.
no-mie-mip = ["riscv-rt/no-xie-xip"]
## Indicate that the device has RTC RAM.
rtc-ram = []
## Implement `defmt::Format`
defmt = ["dep:defmt", "riscv-rt/defmt"]