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

* Introduce esp-config TUI * Validate more * Improve chip-selection, support alternate config.toml files * Minor improvements * Clippy --fix * Do crate-level checks on every change * de-dup * Address review comments * Address review comments * Remove the safety-belt
59 lines
1.8 KiB
TOML
59 lines
1.8 KiB
TOML
[package]
|
|
name = "esp-config"
|
|
version = "0.4.0"
|
|
edition = "2024"
|
|
rust-version = "1.86.0"
|
|
description = "Configure projects using esp-hal and related packages"
|
|
documentation = "https://docs.espressif.com/projects/rust/esp-config/latest/"
|
|
repository = "https://github.com/esp-rs/esp-hal"
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
[lib]
|
|
bench = false
|
|
test = true
|
|
|
|
[[bin]]
|
|
name = "esp-config"
|
|
required-features = ["tui"]
|
|
|
|
[dependencies]
|
|
document-features = "0.2.11"
|
|
|
|
# used by the `build` and `tui` feature
|
|
serde = { version = "1.0.197", default-features = false, features = ["derive"], optional = true }
|
|
serde_yaml = { version = "0.9", optional = true }
|
|
evalexpr = { version = "12.0.2", optional = true }
|
|
esp-metadata = { version = "0.7.0", path = "../esp-metadata", default-features = true, optional = true }
|
|
|
|
# used by the `tui` feature
|
|
clap = { version = "4.5.32", features = ["derive"], optional = true }
|
|
crossterm = { version = "0.28.1", optional = true }
|
|
env_logger = { version = "0.11.7", optional = true }
|
|
log = { version = "0.4.26", optional = true }
|
|
ratatui = { version = "0.29.0", features = ["crossterm", "unstable"], optional = true }
|
|
toml_edit = { version = "0.22.26", optional = true }
|
|
tui-textarea = { version = "0.7.0", optional = true }
|
|
cargo_metadata = { version = "0.19.2", optional = true }
|
|
|
|
[dev-dependencies]
|
|
temp-env = "0.3.6"
|
|
pretty_assertions = "1.4.1"
|
|
|
|
[features]
|
|
## Enable the generation and parsing of a config
|
|
build = ["dep:serde", "dep:serde_yaml", "dep:evalexpr", "dep:esp-metadata"]
|
|
|
|
## The TUI
|
|
tui = [
|
|
"dep:clap",
|
|
"dep:crossterm",
|
|
"dep:env_logger",
|
|
"dep:log",
|
|
"dep:ratatui",
|
|
"dep:toml_edit",
|
|
"dep:tui-textarea",
|
|
"dep:cargo_metadata",
|
|
"esp-metadata?/clap",
|
|
"build",
|
|
]
|