Rust
Installation Instructions
Linux
Linux
Download Rust
{
"url": "{{ .SVar `.tool.rust.download.url` }}",
"destination_folder": "{{ .PDownloads }}",
"output_filename": "{{ .SVar `.tool.rust.download.filename` }}",
"overwrite": false
} Extract Rust Release
{
"destination": "{{ .PTools }}/rust/{{ .SVar `.tool.rust.download.version` }}",
"max_file_size": 0,
"skip_symlinks": false,
"preserve_permissions": true,
"remove_existing": true,
"source": "{{ .PDownloads }}/{{ .SVar `.tool.rust.download.filename` }}"
} Move files up one level to simplify directory structure
{
"source": "{{ .PTools }}/rust/{{ .SVar `.tool.rust.download.version` }}/rust-1.94.1-x86_64-unknown-linux",
"destination": "{{ .PTools }}/rust/{{ .SVar `.tool.rust.download.version` }}",
"overwrite_duplicates": false
} Move standard library to expected location
{
"source": "{{ .PTools }}/rust/{{ .SVar `.tool.rust.download.version` }}/rust-std-x86_64-unknown-linux/lib/rustlib/x86_64-unknown-linux/lib",
"destination": "{{ .PTools }}/rust/{{ .SVar `.tool.rust.download.version` }}/rustc/lib/rustlib/x86_64-unknown-linux/lib",
"overwrite_duplicates": false
}
MacOS
MacOS
Download Rust
{
"url": "{{ .SVar `.tool.rust.download.url` }}",
"destination_folder": "{{ .PDownloads }}",
"output_filename": "{{ .SVar `.tool.rust.download.filename` }}",
"overwrite": false
} Extract Rust Release
{
"destination": "{{ .PTools }}/rust/{{ .SVar `.tool.rust.download.version` }}",
"max_file_size": 0,
"skip_symlinks": false,
"preserve_permissions": true,
"remove_existing": true,
"source": "{{ .PDownloads }}/{{ .SVar `.tool.rust.download.filename` }}"
} Move files up one level to simplify directory structure
{
"source": "{{ .PTools }}/rust/{{ .SVar `.tool.rust.download.version` }}/rust-1.94.1-x86_64-apple-darwin",
"destination": "{{ .PTools }}/rust/{{ .SVar `.tool.rust.download.version` }}",
"overwrite_duplicates": false
} Move standard library to expected location
{
"source": "{{ .PTools }}/rust/{{ .SVar `.tool.rust.download.version` }}/rust-std-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib",
"destination": "{{ .PTools }}/rust/{{ .SVar `.tool.rust.download.version` }}/rustc/lib/rustlib/x86_64-apple-darwin/lib",
"overwrite_duplicates": false
} Binaries
- cargo/bin/cargo
- clippy-preview/bin/cargo-clippy
- clippy-preview/bin/clippy-driver
- rust-analyzer-preview/bin/rust-analyzer
- rustc/bin/rust-gdbgui
- rustc/bin/rustc
- rustc/bin/rustdoc
- rustc/bin/rust-lldb
- rustc/bin/rust-gdb
- rustc/lib/rustlib/aarch64-apple-darwin/bin/gcc-ld/lld-link
- rustc/lib/rustlib/aarch64-apple-darwin/bin/gcc-ld/wasm-ld
- rustc/lib/rustlib/aarch64-apple-darwin/bin/rust-lld
- rustc/lib/rustlib/aarch64-apple-darwin/bin/rust-objcopy
- rustc/lib/rustlib/aarch64-apple-darwin/bin/wasm-component-ld
- rustfmt-preview/bin/cargo-fmt
- rustfmt-preview/bin/rustfmt