[package]
name         = "xtensa-lx-rt"
version      = "0.17.2"
edition      = "2021"
rust-version = "1.65"
description  = "Minimal startup/runtime for Xtensa LX CPUs"
repository   = "https://github.com/esp-rs/esp-hal"
license      = "MIT OR Apache-2.0"
keywords     = ["xtensa", "lx", "register", "peripheral"]
categories   = ["embedded", "hardware-support", "no-std"]

[package.metadata.docs.rs]
features = ["esp32"]

[dependencies]
document-features = "0.2.10"
macros            = { version = "0.2.2", package = "xtensa-lx-rt-proc-macros", path = "./procmacros" }
r0                = "1.0.0"
xtensa-lx         = { version = "0.9.0", path = "../xtensa-lx" }

[build-dependencies]
anyhow          = "1.0.89"
enum-as-inner   = "0.6.1"
minijinja       = "2.3.1"
serde           = { version = "1.0.210", features = ["derive"] }
strum           = { version = "0.26.3", features = ["derive"] }
toml            = "0.8.19"

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

#! ### Chip Support Feature Flags
## Target the ESP32
esp32   = []
## Target the ESP32-S2
esp32s2 = []
## Target the ESP32-S3
esp32s3 = []

[lints.rust]
unexpected_cfgs = "allow"
