Update installation instructions to esp-rs/rust 1.54
georgik opened this issue · 2 comments
georgik commented
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
georgik commented
Binary artifacts for Rust 1.54.0 based on https://github.com/esp-rs/rust are available:
- Linux Ubuntu 18 and compatible
- DockerHub esp-idf-rust
- macOS BigSur x64
- macOS BigSur M1 - the build requires LLVM 12 which is still in review
Artifacts 1.54.0 are not available for:
- Windows X64 - caused by problem with build
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'
- might be related with rust-lang/rfcs#721, rust-lang/rust#85547
- Linux aarch64 - ESP-IDF is not available for the platform (limitation)
georgik commented
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