2026-01-22 01:21:23 +01:00
|
|
|
[target.'cfg(all(any(target_arch = "riscv32", target_arch = "xtensa"), target_os = "none"))']
|
2026-02-05 02:54:40 +01:00
|
|
|
runner = "espflash flash --partition-table partition-table.csv --monitor"
|
2026-02-03 00:27:20 +01:00
|
|
|
# runner = "probe-rs run --chip esp32s3 --preverify"
|
2026-01-22 01:21:23 +01:00
|
|
|
|
|
|
|
|
[build]
|
|
|
|
|
target = "xtensa-esp32s3-none-elf"
|
|
|
|
|
rustflags = [
|
2026-01-22 18:16:37 +01:00
|
|
|
# Exploit mitigations.
|
|
|
|
|
"-Zstack-protector=all",
|
|
|
|
|
|
|
|
|
|
# Other unsupported exploit mitigations from:
|
|
|
|
|
# https://doc.rust-lang.org/beta/rustc/exploit-mitigations.html#exploit-mitigations-1
|
|
|
|
|
# "-Zsanitizer=cfi,shadow-call-stack,safestack"
|
|
|
|
|
|
|
|
|
|
# Required to obtain backtraces on riscv (e.g. when using the "esp-backtrace" crate.)
|
|
|
|
|
# "-C", "force-frame-pointers",
|
2026-01-22 01:21:23 +01:00
|
|
|
]
|
|
|
|
|
|
2026-01-24 21:12:25 +01:00
|
|
|
[env] # These must be kept in sync with /.zed/settings.json
|
2026-01-22 22:57:43 +01:00
|
|
|
EXPLICITLY_INCLUDE_DEFAULT_DIRS = "true"
|
2026-01-30 00:38:43 +01:00
|
|
|
XKBCOMMON_BUILD_DIR = "../libxkbcommon/build-esp32s3"
|
2026-01-22 01:21:23 +01:00
|
|
|
SPECTRE_API_BUILD_DIR = "../spectre-api-c/build-esp32s3"
|
2026-01-30 00:38:43 +01:00
|
|
|
SODIUM_INSTALL_DIR = "../libsodium/install"
|
|
|
|
|
XKBCOMMON_BUILD_DIR_NAME = "build-esp32s3"
|
|
|
|
|
SPECTRE_API_BUILD_DIR_NAME = "build-esp32s3"
|
|
|
|
|
SODIUM_INSTALL_DIR_NAME = "install"
|
2026-01-22 01:21:23 +01:00
|
|
|
SPECTRE_API_SYS_CC = "xtensa-esp32s3-elf-cc.exe"
|
|
|
|
|
ESP_LOG = "warn"
|
|
|
|
|
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"
|
2026-02-12 02:39:31 +01:00
|
|
|
ACID_KEYMAP_PATH = "../keymaps/cz_coder.xkb"
|
|
|
|
|
ACID_COMPOSE_PATH = "../compose/cs_CZ Compose.txt"
|
|
|
|
|
ACID_COMPOSE_LOCALE = "cs_CZ.UTF-8"
|
2026-01-22 01:21:23 +01:00
|
|
|
|
|
|
|
|
# Xtensa only:
|
|
|
|
|
# Needed for nightly, until llvm upstream has support for Rust Xtensa.
|
|
|
|
|
# This can be substituted with a `-Zbuild-std="core,alloc"` cargo flag.
|
|
|
|
|
[unstable]
|
|
|
|
|
build-std = ["alloc", "core"]
|
2026-02-18 05:03:05 +01:00
|
|
|
|
|
|
|
|
[patch.crates-io]
|
|
|
|
|
esp-backtrace = { git = "https://github.com/Limeth/esp-hal.git", rev = "72e22e2de678297da65a185023309a76aef8a5ca" }
|
|
|
|
|
esp-hal = { git = "https://github.com/Limeth/esp-hal.git", rev = "72e22e2de678297da65a185023309a76aef8a5ca" }
|
|
|
|
|
esp-storage = { git = "https://github.com/Limeth/esp-hal.git", rev = "72e22e2de678297da65a185023309a76aef8a5ca" }
|
|
|
|
|
esp-alloc = { git = "https://github.com/Limeth/esp-hal.git", rev = "72e22e2de678297da65a185023309a76aef8a5ca" }
|
|
|
|
|
esp-println = { git = "https://github.com/Limeth/esp-hal.git", rev = "72e22e2de678297da65a185023309a76aef8a5ca" }
|
|
|
|
|
esp-radio = { git = "https://github.com/Limeth/esp-hal.git", rev = "72e22e2de678297da65a185023309a76aef8a5ca" }
|
|
|
|
|
esp-rtos = { git = "https://github.com/Limeth/esp-hal.git", rev = "72e22e2de678297da65a185023309a76aef8a5ca" }
|
|
|
|
|
esp-bootloader-esp-idf = { git = "https://github.com/Limeth/esp-hal.git", rev = "72e22e2de678297da65a185023309a76aef8a5ca" }
|
|
|
|
|
esp-sync = { git = "https://github.com/Limeth/esp-hal.git", rev = "72e22e2de678297da65a185023309a76aef8a5ca" }
|