Rust Learning Repo
-
Start from rust-new-project-template
-
Small Rust learning projects into this Repo

Introduction
- Cargo.toml file and ./src/ are created with command
cargo init --name "[project name]" - In the ./src/ directory, there are two files (main.rs and lib.rs)
- The
mainfunction is in the main.rs file. - Most logics and self-defined functions are in the lib.rs file.
- The
Usage and reproduce
- Open Codespaces
- set up your own CPU/GPU choice
- Run
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shto install Rust if you haven’t installed one
cdinto each project- Run
cargo run -- --help - Edit and run
make formatto format code
- Run
- rust-cli-example
- rust-new-project-template