78 lines
2.3 KiB
TOML
78 lines
2.3 KiB
TOML
[package]
|
|
name = "hil-test"
|
|
version = "0.0.0"
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[[test]]
|
|
name = "aes"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "gpio"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "spi_full_duplex"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "uart"
|
|
harness = false
|
|
|
|
[dependencies]
|
|
defmt = { version = "0.3.5" }
|
|
defmt-rtt = { version = "0.4.0" }
|
|
esp-hal = { path = "../esp-hal", features = ["embedded-hal", "embedded-hal-02", "defmt"], optional = true }
|
|
embedded-hal-02 = { version = "0.2.7", package = "embedded-hal", features = ["unproven"] }
|
|
embedded-hal-async = { version = "1.0.0", optional = true }
|
|
embedded-hal = { version = "1.0.0" }
|
|
embedded-hal-nb = { version = "1.0.0", optional = true }
|
|
embassy-executor = { default-features = false, version = "0.5.0", features = ["executor-thread", "arch-riscv32"], optional = true }
|
|
semihosting = "0.1.6"
|
|
|
|
[dev-dependencies]
|
|
# Add the `embedded-test/defmt` feature for more verbose testing
|
|
embedded-test = {git = "https://github.com/probe-rs/embedded-test", rev = "8e3f925"}
|
|
|
|
[features]
|
|
# Device support (required!):
|
|
esp32 = ["esp-hal/esp32"]
|
|
esp32c2 = ["esp-hal/esp32c2"]
|
|
esp32c3 = ["esp-hal/esp32c3"]
|
|
esp32c6 = ["esp-hal/esp32c6"]
|
|
esp32h2 = ["esp-hal/esp32h2"]
|
|
esp32s2 = ["esp-hal/esp32s2"]
|
|
esp32s3 = ["esp-hal/esp32s3"]
|
|
# Async & Embassy:
|
|
async = ["dep:embedded-hal-async", "esp-hal?/async"]
|
|
embassy = ["esp-hal?/embassy", "embedded-test/embassy", "dep:embassy-executor"]
|
|
embassy-executor-interrupt = ["esp-hal?/embassy-executor-interrupt"]
|
|
embassy-executor-thread = ["esp-hal?/embassy-executor-thread"]
|
|
embassy-time-systick-16mhz = ["esp-hal?/embassy-time-systick-16mhz"]
|
|
embassy-time-systick-80mhz = ["esp-hal?/embassy-time-systick-80mhz"]
|
|
embassy-time-timg0 = ["esp-hal?/embassy-time-timg0"]
|
|
|
|
# https://doc.rust-lang.org/cargo/reference/profiles.html#test
|
|
# Test and bench profiles inherit from dev and release respectively.
|
|
|
|
[profile.dev]
|
|
codegen-units = 1
|
|
debug = 2
|
|
debug-assertions = true
|
|
incremental = false
|
|
opt-level = 'z'
|
|
overflow-checks = true
|
|
|
|
[profile.release]
|
|
codegen-units = 1
|
|
debug = 2
|
|
debug-assertions = false
|
|
incremental = false
|
|
opt-level = 3
|
|
lto = 'fat'
|
|
overflow-checks = false
|
|
|
|
[patch.crates-io]
|
|
semihosting = { git = "https://github.com/taiki-e/semihosting", rev = "c829c19" }
|