Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fzl-22/learn-rust
Faisal's journey of learning Rust programming language
https://github.com/fzl-22/learn-rust
Last synced: about 2 months ago
JSON representation
Faisal's journey of learning Rust programming language
- Host: GitHub
- URL: https://github.com/fzl-22/learn-rust
- Owner: fzl-22
- Created: 2024-02-09T16:01:47.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-02-14T04:19:03.000Z (11 months ago)
- Last Synced: 2024-02-14T05:25:41.462Z (11 months ago)
- Language: Rust
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Learn Rust
Welcome to Faisal's journey of learning Rust programming language!
## Prerequisites
To install Rust, follow the documentation at [https://doc.rust-lang.org/book/ch01-01-installation.html](https://doc.rust-lang.org/book/ch01-01-installation.html). You can install Rust via `rustup` or any UNIX-like operating system's package managers such as `dnf`, `pacman`, or `homebrew`. For installation on Windows, I personally prefer to install it on WSL (Windows Subsystem for Linux).
## How to create project
To create `rust` project, use `cargo new {project-name}`.
```bash
cargo new my-project
```## How to build
To build `rust` project, `cd` into the root project directory. Then, run `cargo build`.
```bash
cargo build
```This command will compile the entire project and store it in `target` directory.
## How to run
To run the target binary, just execute the binary in `target/debug/`.
```bash
./target/debug/{project-name}
```## How to build and run
For simplicity, use `cargo run` in the root of project directory.
```bash
cargo run
```