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

https://github.com/hashfx/learn-rust

Rust Practice
https://github.com/hashfx/learn-rust

Last synced: 18 days ago
JSON representation

Rust Practice

Awesome Lists containing this project

README

          

# Setup Rust

### Install Rust
```shell
sudo apt install rustc cargo
```

### init cargo project
```shell
cargo new PROJECTNAME
```

+ cargo.toml is a **cargo configuration file** for packages and dependencies
+ cargo.lock stores versions for all the dependencies
+ update the versions of dependencies: ```cargo update```

### Run

+ ```cd learn_rust/src```
+ Compile rust file ```rustc main.rs```
+ Run compiled file ```./main.rs```