https://github.com/fibo/rust-afari
learn Rust code
https://github.com/fibo/rust-afari
Last synced: 11 months ago
JSON representation
learn Rust code
- Host: GitHub
- URL: https://github.com/fibo/rust-afari
- Owner: fibo
- Created: 2022-02-26T08:40:36.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-09T16:02:43.000Z (over 2 years ago)
- Last Synced: 2024-11-09T02:54:39.475Z (over 1 year ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rust-afari
> learn Rust code
Start with [hello world](./hello-world/hello.rs).
## Install Rust
To install Rust, you can just follow the installation steps [here](https://doc.rust-lang.org/book/ch01-01-installation.html).
There are clear steps for getting Rust installed for Windows, Linux, and Mac.
## The book
Read [The Rust Programming Language book online here](https://doc.rust-lang.org/book/) or read it offline launching
```sh
rustup docs --book
```
## Editor integration
Install [rustfmt](https://github.com/rust-lang/rustfmt) code formatter.
```sh
rustup component add rustfmt
```
### Vim
Install [rust.vim](https://github.com/rust-lang/rust.vim) plugin.
Set code formatting on save, add to vim config
let g:rustfmt_autosave = 1
Add also [coc-rust-analyzer](https://github.com/fannheyward/coc-rust-analyzer).
## See also
- [Rust by example](https://doc.rust-lang.org/rust-by-example/index.html)
- [Rust online playground](https://play.rust-lang.org/)
- [The Cargo Book](https://doc.rust-lang.org/cargo/)