https://github.com/255doesnotexist/rust-lang-learning-examples
A collection of toy code examples written while reading The Rust Programming Language.
https://github.com/255doesnotexist/rust-lang-learning-examples
Last synced: 3 months ago
JSON representation
A collection of toy code examples written while reading The Rust Programming Language.
- Host: GitHub
- URL: https://github.com/255doesnotexist/rust-lang-learning-examples
- Owner: 255doesnotexist
- License: gpl-2.0
- Created: 2024-02-24T15:46:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-07T00:59:21.000Z (about 1 year ago)
- Last Synced: 2025-01-11T19:50:52.118Z (5 months ago)
- Language: Rust
- Size: 3.45 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-lang-learning-examples
This is a collection of toy code examples written while reading [The Rust Programming Language](https://doc.rust-lang.org/book/), a book that teaches the basics and advanced features of Rust. High recommendation for this book.
Actually I make this repository public here just to record my learning progress.
## How to use this repository
All codes passed test on rustc 1.76.0 (07dca489a 2024-02-04).
You can clone this repository to your local machine and run the examples using the `cargo` command. For example, to run the `hello_cargo` example, you can do:
```bash
git clone https://github.com/255doesnotexist/rust-lang-learning-examples.git
cd rust-lang-learning-examples/hello_cargo
cargo run
```~~The hello_world directory need to compile with rustc because it's created before the book introduce the cargo tool.~~