An open API service indexing awesome lists of open source software.

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

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/)