refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / rustlang / README.md
1 ---
2 title: Rust
3 homepage: https://rust-lang.org
4 tagline: |
5   Rust: Empowering everyone to build reliable and efficient software.
6 ---
7
8 ## Updating rustlang
9
10 ```bash
11 rustup update
12 ```
13
14 You can `rustup use x.y.z` for a specific version or toolchain.
15
16 ## Cheat Sheet
17
18 > Rust is what C++ and D were trying to do, but didn't. It's a modern, safe,
19 > high-performance language, which also just so happens to be used to build all
20 > of your favorite CLI tools, such as:
21
22 - rg (ripgrep, modern grep)
23 - fd (modern find)
24 - sd (modern sed)
25 - lsd (modern ls)
26 - bat (modern cat)
27
28 ### Install rust from rust.rs
29
30 ```bash
31 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
32 ```
33
34 ### Hello World
35
36 ```bash
37 cargo install ripgrep
38 ```
39
40 ```bash
41 cargo new hello --bin
42 cargo build --release
43 ./hello
44 > "Hello, world!"
45 ```