Last active
January 6, 2024 12:11
-
-
Save hmwill/ad3b1dab04ca4d9e5d761ba22de97efd to your computer and use it in GitHub Desktop.
Setting up Rust on Chrome OS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set up basic dev tools | |
sudo apt-get update | |
sudo apt-get install build-essential | |
# Run the base installation | |
curl https://sh.rustup.rs -sSf | sh | |
# Set the path | |
export PATH="$HOME/.cargo/bin:$PATH" | |
# Add the nightly chain | |
rustup toolchain install nightly | |
# Add RLS | |
rustup component add rls-preview rust-analysis rust-src | |
# Add Clippy | |
rustup component add clippy-preview --toolchain=nightly | |
# Add rustfmt | |
rustup component add rustfmt-preview | |
rustup component add rustfmt-preview --toolchain nightly | |
# Add kcov | |
cargo install cargo-kcov | |
# Adding VS Code [from https://kmyers.me/blog/chromeos/running-visual-studio-code-on-chromeos-via-project-crostini/] | |
sudo apt-get update | |
sudo apt-get install libxss1 git gpg curl | |
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg | |
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' | |
sudo apt-get update | |
sudo apt-get install code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment