acid/firmware2/.cargo/config.toml
2025-12-27 21:04:27 +01:00

30 lines
1 KiB
TOML

[target.'cfg(all(any(target_arch = "riscv32", target_arch = "xtensa"), target_os = "none"))']
runner = "espflash flash --monitor"
[build]
target = "xtensa-esp32s3-none-elf"
rustflags = [
# Required to obtain backtraces (e.g. when using the "esp-backtrace" crate.)
# NOTE: May negatively impact performance of produced code
"-C", "force-frame-pointers",
]
[env]
ESP_LOG = "info"
# Xtensa only:
# Needed for nightly, until llvm upstream has support for Rust Xtensa.
[unstable]
build-std = ["alloc", "core"]
# [patch.crates-io]
# esp-backtrace = { path = "../../../rust/esp-hal/esp-backtrace" }
# esp-hal = { path = "../../../rust/esp-hal/esp-hal" }
# esp-storage = { path = "../../../rust/esp-hal/esp-storage" }
# esp-alloc = { path = "../../../rust/esp-hal/esp-alloc" }
# esp-println = { path = "../../../rust/esp-hal/esp-println" }
# esp-radio = { path = "../../../rust/esp-hal/esp-radio" }
# esp-rtos = { path = "../../../rust/esp-hal/esp-rtos" }
# esp-bootloader-esp-idf = { path = "../../../rust/esp-hal/esp-bootloader-esp-idf" }