https://github.com/exu/rust-training
It's time to learn some Rust
https://github.com/exu/rust-training
Last synced: 26 days ago
JSON representation
It's time to learn some Rust
- Host: GitHub
- URL: https://github.com/exu/rust-training
- Owner: exu
- Created: 2020-02-17T18:11:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-25T05:59:34.000Z (over 6 years ago)
- Last Synced: 2025-11-08T06:15:22.670Z (9 months ago)
- Language: Rust
- Size: 671 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rust-training
## 001 Hello!
To compile use:
```
rustc 001-hello/main.rs
./main
```
## Cargo
Go need 9 years to manage deps properly ;)
In rust you want to use Cargo:
### Creating new project
```
cargo new some-service
cd some-service
cargo run
```
### Creating new libs
If you add ```--lib``` cargo will generate new library project.
## Control structures