fix: move build-std from .cargo/config.toml to Justfile (Xtensa only)

build-std=core,alloc was globally enabled in .cargo/config.toml, which
conflicted with cargo-fuzz's own -Zbuild-std, causing duplicate core
errors. Now only passed for Xtensa targets via the Justfile.
This commit is contained in:
swaits committed 2026-03-30 11:06:32 -06:00
1 parent 4d71020177
commit 9a06a5f55e
203 files changed
+2436 -5

No files matched your search

+2 -2
View File
@@ -74,9 +74,9 @@ _cargo board cmd extra_args="":
case "$target" in xtensa-*) \
just _require_esp_toolchain; \
[ -f "$HOME/export-esp.sh" ] && . "$HOME/export-esp.sh"; \
env="RUSTC=$(rustup which rustc --toolchain esp)"; extra="+nightly";; \
env="RUSTC=$(rustup which rustc --toolchain esp)"; extra="+nightly"; buildstd="-Zbuild-std=core,alloc";; \
esac; \
eval $env cargo $extra {{cmd}} --target "$target" --features "$feat" {{extra_args}}
eval $env cargo $extra {{cmd}} --target "$target" --features "$feat" $buildstd {{extra_args}}
# Check if a board's toolchain is available (silent, for build-all/check-all skipping)
[private]