esp-hal/esp-println/Cargo.toml
2025-04-24 13:41:20 +00:00

66 lines
1.9 KiB
TOML

[package]
name = "esp-println"
version = "0.13.1"
edition = "2024"
rust-version = "1.85.0"
description = "Provides `print!` and `println!` implementations various Espressif devices"
documentation = "https://docs.espressif.com/projects/rust/esp-println/latest/"
keywords = ["defmt", "embedded", "esp32", "espressif", "logging"]
categories = ["embedded", "hardware-support", "no-std"]
repository = "https://github.com/esp-rs/esp-hal"
license = "MIT OR Apache-2.0"
links = "esp-println"
[package.metadata.docs.rs]
cargo-args = ["-Z", "build-std=core"]
default-target = "riscv32imc-unknown-none-elf"
features = ["esp32c3"]
[lib]
bench = false
test = false
[dependencies]
critical-section = { version = "1.2.0", optional = true }
defmt = { version = "1.0.1", optional = true }
log = { version = "0.4.27", optional = true }
portable-atomic = { version = "1.11.0", optional = true, default-features = false }
[build-dependencies]
esp-build = { version = "0.2.0", path = "../esp-build" }
log = "0.4.27"
[features]
default = ["auto", "colors", "critical-section"]
critical-section = ["dep:critical-section"]
log = ["dep:log"]
# You must enable exactly 1 of the below features to support the correct chip:
esp32 = []
esp32c2 = []
esp32c3 = []
esp32c6 = []
esp32h2 = []
esp32p4 = []
esp32s2 = []
esp32s3 = []
# You must enable exactly 1 of the below features to enable to intended
# communication method (note that "auto" is enabled by default):
jtag-serial = ["dep:portable-atomic"] # C3, C6, H2, P4, and S3 only!
uart = []
auto = ["dep:portable-atomic"]
# Don't print anything
no-op = []
# Enables a `defmt` backend usable with espflash. We force rzcobs encoding to simplify implementation
defmt-espflash = ["dep:defmt", "defmt?/encoding-rzcobs"]
# logging sub-features
colors = []
timestamp = []
[lints.rust]
static_mut_refs = "allow"