Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/thattanmay/rust
- Owner: thattanmay
- Created: 2022-06-26T20:22:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-07T07:33:49.000Z (about 2 years ago)
- Last Synced: 2024-10-13T15:22:07.711Z (2 months ago)
- Topics: rust, rust-lang, rust-language, sample-code
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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