Skip to content

Instantly share code, notes, and snippets.

@gpsarkar
Last active March 28, 2022 15:23
Show Gist options
  • Save gpsarkar/0c2028eed6b6987a0902afc8448d1c6f to your computer and use it in GitHub Desktop.
Save gpsarkar/0c2028eed6b6987a0902afc8448d1c6f to your computer and use it in GitHub Desktop.
Rust steps
# Install
Download win 64 bit from https://www.rust-lang.org/tools/install
### Run the installer. It will launch a command prompt
The Cargo home directory located at:
C:\Users\gs\.cargo
This can be modified with the CARGO_HOME environment variable.
The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:
C:\Users\gs\.cargo\bin
This path will then be added to your PATH environment variable by
modifying the HKEY_CURRENT_USER/Environment/PATH registry key.
You can uninstall at any time with rustup self uninstall and
these changes will be reverted.
Current installation options:
default host triple: x86_64-pc-windows-msvc
default toolchain: stable (default)
profile: default
modify PATH variable: yes
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>1
info: profile set to 'default'
info: default host triple is x86_64-pc-windows-msvc
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: latest update on 2022-02-24, rust version 1.59.0 (9d1b2106e 2022-02-23)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
19.4 MiB / 19.4 MiB (100 %) 8.7 MiB/s in 2s ETA: 0s
info: downloading component 'rust-std'
23.7 MiB / 23.7 MiB (100 %) 8.7 MiB/s in 2s ETA: 0s
info: downloading component 'rustc'
55.6 MiB / 55.6 MiB (100 %) 8.3 MiB/s in 6s ETA: 0s
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
19.4 MiB / 19.4 MiB (100 %) 1.8 MiB/s in 18s ETA: 0s
info: installing component 'rust-std'
23.7 MiB / 23.7 MiB (100 %) 7.4 MiB/s in 3s ETA: 0s
info: installing component 'rustc'
55.6 MiB / 55.6 MiB (100 %) 9.2 MiB/s in 6s ETA: 0s
info: installing component 'rustfmt'
info: default toolchain set to 'stable-x86_64-pc-windows-msvc'
stable-x86_64-pc-windows-msvc installed - rustc 1.59.0 (9d1b2106e 2022-02-23)
Rust is installed now. Great!
To get started you may need to restart your current shell.
This would reload its PATH environment variable to include
Cargo's bin directory (%USERPROFILE%\.cargo\bin).
Press the Enter key to continue.
# Verify
C:\Users\gs>rustc --version
rustc 1.59.0 (9d1b2106e 2022-02-23)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment