Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/thattanmay/rust

A repo for Rust code samples and implementation
https://github.com/thattanmay/rust

rust rust-lang rust-language sample-code

Last synced: about 1 month ago
JSON representation

A repo for Rust code samples and implementation

Awesome Lists containing this project

README

        

# rust

* ### Generating a new project
```shell
$ cargo new pilot
```
* pilot directory structure
```
.
├── Cargo.toml
└── src
└── main.rs
```
> **Cargo.toml** is the manifest file for Rust. It’s where you keep metadata for your project, as well as dependencies.

> **src/main.rs** is where we’ll write our application code.


> **cargo new** generates a "pilot" project for us! We can run this program by moving into the new directory that we made and running this in our terminal:

> **cargo run** runs the program