mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-27 12:20:56 +00:00

* 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
71 lines
2.1 KiB
TOML
71 lines
2.1 KiB
TOML
[package]
|
|
name = "esp-config"
|
|
version = "0.5.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"
|
|
|
|
[package.metadata.espressif]
|
|
doc-config = { features = ["build"] }
|
|
check-configs = [
|
|
{ features = [] },
|
|
{ features = ["build"] },
|
|
]
|
|
clippy-configs = [
|
|
{ features = ["tui"] },
|
|
]
|
|
|
|
[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 }
|
|
somni-expr = { version = "0.1.0", optional = true }
|
|
esp-metadata = { version = "0.8.0", path = "../esp-metadata", features = ["clap"], optional = true }
|
|
esp-metadata-generated = { version = "0.1.0", path = "../esp-metadata-generated", features = ["build-script"], 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:somni-expr", "dep:esp-metadata-generated"]
|
|
|
|
## The TUI
|
|
tui = [
|
|
"dep:clap",
|
|
"dep:crossterm",
|
|
"dep:env_logger",
|
|
"dep:log",
|
|
"dep:ratatui",
|
|
"dep:toml_edit",
|
|
"dep:tui-textarea",
|
|
"dep:cargo_metadata",
|
|
"dep:esp-metadata",
|
|
"dep:esp-metadata-generated",
|
|
"build",
|
|
]
|