acid/firmware2/.cargo/config.toml

45 lines
1.7 KiB
TOML
Raw Normal View History

2025-12-24 02:07:21 +01:00
[target.'cfg(all(any(target_arch = "riscv32", target_arch = "xtensa"), target_os = "none"))']
runner = "espflash flash --monitor"
2026-01-05 04:16:05 +01:00
# runner = "probe-rs run --chip esp32s3 --preverify"
2025-12-24 02:07:21 +01:00
[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
2026-01-05 04:16:08 +01:00
"-C", "force-frame-pointers",
2025-12-24 02:07:21 +01:00
]
[env]
2026-01-11 22:37:17 +01:00
LIBXKBCOMMON_BUILD_DIR = "libxkbcommon/build"
2026-01-19 20:13:25 +01:00
SPECTRE_API_BUILD_DIR = "spectre-api/build"
SPECTRE_API_SYS_CC = "xtensa-esp32s3-elf-cc.exe"
ESP_LOG = "warn"
2026-01-20 02:55:17 +01:00
ESP_BACKTRACE_CONFIG_BACKTRACE_FRAMES = "20"
# This is overkill, but we can afford it.
SLINT_FONT_SIZES = "8,11,10,12,13,14,15,16,18,20,22,24,32"
2025-12-24 02:07:21 +01:00
# Xtensa only:
# Needed for nightly, until llvm upstream has support for Rust Xtensa.
2026-01-19 20:13:25 +01:00
# TODO: RE-ENABLE WHEN acid-firmware IS MOVED TO ITS OWN SUBDIRECTORY.
# For now, `-Zbuild-std="core,alloc"` can be used instead.
2026-01-20 02:55:17 +01:00
[unstable]
build-std = ["alloc", "core"]
2026-01-19 20:13:25 +01:00
[patch."https://github.com/Limeth/spectre-api-sys"]
spectre-api-sys = { path = "../../../rust/spectre-api-sys" }
2025-12-27 21:03:52 +01:00
[patch.crates-io]
rmk = { path = "../../../rust/rmk/rmk" }
2026-01-10 00:08:14 +01:00
xkbcommon = { path = "../../../rust/xkbcommon-rs-ffi" }
2026-01-19 20:13:25 +01:00
scrypt = { path = "../../../rust/password-hashes/scrypt" }
2025-12-27 21:03:52 +01:00
# 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" }