https://github.com/wilmoore/rust
Rust examples
https://github.com/wilmoore/rust
code-examples code-samples example-code examples rust rust-language
Last synced: 5 months ago
JSON representation
Rust examples
- Host: GitHub
- URL: https://github.com/wilmoore/rust
- Owner: wilmoore
- Created: 2018-12-10T12:08:11.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-03T16:23:31.000Z (almost 7 years ago)
- Last Synced: 2025-06-09T08:08:16.492Z (7 months ago)
- Topics: code-examples, code-samples, example-code, examples, rust, rust-language
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Rust
> Rust examples
## **Table of Contents**
- [Installation](#installation)
## 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
```