# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.76.0" name = "esp-lp-hal" version = "0.1.0" build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false description = "HAL for low-power RISC-V coprocessors found in ESP32 devices" readme = "README.md" license = "MIT OR Apache-2.0" repository = "https://github.com/esp-rs/esp-hal" [lib] name = "esp_lp_hal" path = "src/lib.rs" test = false bench = false [[example]] name = "blinky" path = "examples/blinky.rs" required-features = ["embedded-hal-02"] [[example]] name = "i2c" path = "examples/i2c.rs" required-features = [ "embedded-hal-02", "esp32c6", ] [[example]] name = "uart" path = "examples/uart.rs" required-features = [ "embedded-hal-02", "esp32c6", ] [dependencies.cfg-if] version = "1.0.0" [dependencies.document-features] version = "0.2.10" [dependencies.embedded-hal] version = "1.0.0" optional = true [dependencies.embedded-hal-02] version = "0.2.7" features = ["unproven"] optional = true package = "embedded-hal" [dependencies.embedded-hal-nb] version = "1.0.0" optional = true [dependencies.embedded-io] version = "0.6.1" optional = true [dependencies.esp32c6-lp] version = "0.3.0" features = ["critical-section"] optional = true [dependencies.esp32s2-ulp] version = "0.3.0" features = ["critical-section"] optional = true [dependencies.esp32s3-ulp] version = "0.3.0" features = ["critical-section"] optional = true [dependencies.nb] version = "1.1.0" optional = true [dependencies.paste] version = "1.0.15" optional = true [dependencies.procmacros] version = "0.12.0" package = "esp-hal-procmacros" [dependencies.riscv] version = "0.11.1" features = ["critical-section-single-hart"] [dev-dependencies.panic-halt] version = "0.2.0" [build-dependencies.esp-build] version = "0.1.0" [features] debug = [ "esp32c6-lp?/impl-register-debug", "esp32s2-ulp?/impl-register-debug", "esp32s3-ulp?/impl-register-debug", ] default = ["embedded-hal"] embedded-hal = [ "dep:embedded-hal", "dep:embedded-hal-nb", ] embedded-hal-02 = ["dep:embedded-hal-02"] embedded-io = ["dep:embedded-io"] esp32c6 = [ "dep:esp32c6-lp", "procmacros/is-lp-core", "dep:nb", "dep:paste", ] esp32s2 = [ "dep:esp32s2-ulp", "procmacros/is-ulp-core", ] esp32s3 = [ "dep:esp32s3-ulp", "procmacros/is-ulp-core", ] [lints.rust] unexpected_cfgs = "allow"