Skip to content

wilmoore/rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Rust

Rust examples

Table of Contents

Installation

OS:macOS, $SHELL:fish

safe as possible install
~$ git clone https://github.com/rust-lang/rustup.rs.git $TMPDIR/rustup
~$ cd $TMPDIR/rustup
~$ env RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup" ./rustup-init.sh --no-modify-path -y
add cargo to $fish_user_paths
~$ echo 'set -g fish_user_paths "$HOME/.cargo/bin" $fish_user_paths' > ~/.config/fish/conf.d/rust.fish
~$ source ~/.config/fish/conf.d/rust.fish
updates and components
~$ rustup self update
~$ rustup update
~$ rustup component add rust-src
~$ rustup component add rust-docs
completions
~$ mkdir -p ~/.config/fish/completions
~$ rustup completions fish > ~/.config/fish/completions/rust.fish
~$ source ~/.config/fish/completions/rust.fish
uninstall
~$ rm ~/.config/fish/completions/rust* ~/.config/fish/conf.d/rust*
~$ rm -rf ~/.cargo ~/.rustup
binaries
~$ tree ~/.cargo/bin/
├── cargo
├── cargo-clippy
├── cargo-fmt
├── rls
├── rust-gdb
├── rust-lldb
├── rustc
├── rustdoc
├── rustfmt
└── rustup

0 directories, 10 files