|
| 1 | +[package] |
| 2 | +name = "esp-hal-buzzer" |
| 3 | +version = "0.1.0" |
| 4 | +edition = "2021" |
| 5 | +rust-version = "1.76.0" |
| 6 | +description = "Buzzer driver for esp-hal" |
| 7 | +repository = "https://github.com/esp-rs/esp-hal-community" |
| 8 | +license = "MIT OR Apache-2.0" |
| 9 | + |
| 10 | +[package.metadata.docs.rs] |
| 11 | +features = ["esp32c3"] |
| 12 | +targets = ["riscv32imc-unknown-none-elf"] |
| 13 | + |
| 14 | +[dependencies] |
| 15 | +defmt = { version = "0.3.8", optional = true } |
| 16 | +document-features = "0.2.10" |
| 17 | +esp-hal = "0.20.1" |
| 18 | +fugit = "0.3.7" |
| 19 | + |
| 20 | +[dev-dependencies] |
| 21 | +esp-backtrace = { version = "0.14.1", features = [ |
| 22 | + "exception-handler", |
| 23 | + "panic-handler", |
| 24 | + "println", |
| 25 | +] } |
| 26 | +esp-println = "0.11.0" |
| 27 | + |
| 28 | +[features] |
| 29 | +## Implement `defmt::Format` on certain types. |
| 30 | +defmt = ["dep:defmt", "esp-hal/defmt"] |
| 31 | + |
| 32 | +#! ### Chip Support Feature Flags |
| 33 | +## Target the ESP32. |
| 34 | +esp32 = ["esp-backtrace/esp32", "esp-hal/esp32", "esp-println/esp32"] |
| 35 | +## Target the ESP32-C2. |
| 36 | +esp32c2 = ["esp-backtrace/esp32c2", "esp-hal/esp32c2", "esp-println/esp32c2"] |
| 37 | +## Target the ESP32-C3. |
| 38 | +esp32c3 = ["esp-backtrace/esp32c3", "esp-hal/esp32c3", "esp-println/esp32c3"] |
| 39 | +## Target the ESP32-C6. |
| 40 | +esp32c6 = ["esp-backtrace/esp32c6", "esp-hal/esp32c6", "esp-println/esp32c6"] |
| 41 | +## Target the ESP32-H2. |
| 42 | +esp32h2 = ["esp-backtrace/esp32h2", "esp-hal/esp32h2", "esp-println/esp32h2"] |
| 43 | +## Target the ESP32-S2. |
| 44 | +esp32s2 = ["esp-backtrace/esp32s2", "esp-hal/esp32s2", "esp-println/esp32s2"] |
| 45 | +## Target the ESP32-S3. |
| 46 | +esp32s3 = ["esp-backtrace/esp32s3", "esp-hal/esp32s3", "esp-println/esp32s3"] |
| 47 | + |
| 48 | +# Patch until next esp-hal release |
| 49 | +[patch.crates-io] |
| 50 | +esp-hal = { git = "https://github.com/esp-rs/esp-hal", rev = "a787a13" } |
0 commit comments