[package]
name          = "xtensa-lx-rt"
version       = "0.21.0"
edition       = "2024"
rust-version  = "1.88.0"
description   = "Minimal startup/runtime for Xtensa LX CPUs"
documentation = "https://docs.espressif.com/projects/rust/xtensa-lx-rt/latest/"
repository    = "https://github.com/esp-rs/esp-hal"
license       = "MIT OR Apache-2.0"
keywords      = ["lx", "peripheral", "register", "xtensa"]
categories    = ["embedded", "hardware-support", "no-std"]
links         = "xtensa-lx-rt"

[package.metadata.espressif]
requires_target = ["xtensa-esp32-none-elf", "xtensa-esp32s2-none-elf", "xtensa-esp32s3-none-elf"]

[lib]
bench = false
test  = false

[dependencies]
document-features = "0.2"
defmt             = {version = "1.0.1", optional = true}
macros            = { version = "0.5.0", package = "xtensa-lx-rt-proc-macros", path = "../xtensa-lx-rt-proc-macros" }
xtensa-lx         = { version = "0.13.0", path = "../xtensa-lx" }

[build-dependencies]

[features]
## Save and restore float registers for exceptions
float-save-restore = []

## Implement `defmt::Format`
defmt = ["dep:defmt"]

[lints.rust]
unexpected_cfgs = "allow"
