add webi dat dat dat
[webi-installers/.git] / rustlang / README.md
diff --git a/rustlang/README.md b/rustlang/README.md
new file mode 100644 (file)
index 0000000..3d604bf
--- /dev/null
@@ -0,0 +1,45 @@
+---
+title: Rust
+homepage: https://rust-lang.org
+tagline: |
+  Rust: Empowering everyone to build reliable and efficient software.
+---
+
+## Updating rustlang
+
+```bash
+rustup update
+```
+
+You can `rustup use x.y.z` for a specific version or toolchain.
+
+## Cheat Sheet
+
+> Rust is what C++ and D were trying to do, but didn't. It's a modern, safe,
+> high-performance language, which also just so happens to be used to build all
+> of your favorite CLI tools, such as:
+
+- rg (ripgrep, modern grep)
+- fd (modern find)
+- sd (modern sed)
+- lsd (modern ls)
+- bat (modern cat)
+
+### Install rust from rust.rs
+
+```bash
+curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
+```
+
+### Hello World
+
+```bash
+cargo install ripgrep
+```
+
+```bash
+cargo new hello --bin
+cargo build --release
+./hello
+> "Hello, world!"
+```