espressif/rust-esp32-example

Update installation instructions to esp-rs/rust 1.54

georgik opened this issue · 2 comments

Artifacts and build instructions should be updated from 1.53 to 1.54:

  • Linux - x64
  • macOS - x64, M1
  • Windows - x64
  • esp-idf Docker images
  • installation manuals

Binary artifacts for Rust 1.54.0 based on https://github.com/esp-rs/rust are available:

Artifacts 1.54.0 are not available for:

0: failed to copy 'D:\a\idf-rust-build\idf-rust-build\build\tmp\tarball\rustc-dev\x86_64-pc-windows-msvc\image\lib\rustlib\rustc-src\rust\compiler\rustc_codegen_cranelift\crate_patches\0001-compiler-builtins-Disable-128bit-atomic-operations.patch' to 'D:\a\idf-rust-build\idf-rust-build\build\tmp\tarball\rustc-dev\x86_64-pc-windows-msvc\rustc-dev-1.54.0-dev-x86_64-pc-windows-msvc\rustc-dev\lib\rustlib\rustc-src\rust\compiler\rustc_codegen_cranelift\crate_patches\0001-compiler-builtins-Disable-128bit-atomic-operations.patch'

Only several components are required. Changed build system to build just them:

python3 x.py build compiler/rustc src/tools/rustfmt library/std --stage 2
python3 x.py dist src --stage 2

Result dist package is then composed from build/stage2 and build/dist.
Simplified instructions for Windows https://github.com/espressif/rust-esp32-example/blob/feature/rust-1.54.0/docs/rust-on-xtensa-installation-x86_64-pc-windows-msvc.md