https://github.com/blackshadowsoftwareltd/rust-practice
Rust Language Practice
https://github.com/blackshadowsoftwareltd/rust-practice
practice rust rust-lang rustlang rustprogramming
Last synced: 5 months ago
JSON representation
Rust Language Practice
- Host: GitHub
- URL: https://github.com/blackshadowsoftwareltd/rust-practice
- Owner: blackshadowsoftwareltd
- Created: 2023-03-11T16:54:34.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-25T04:12:09.000Z (almost 2 years ago)
- Last Synced: 2024-01-25T05:27:10.992Z (almost 2 years ago)
- Topics: practice, rust, rust-lang, rustlang, rustprogramming
- Language: Rust
- Homepage:
- Size: 8.53 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## -Rust-Practice
================================================================================
#### create a new rust project
```
cargo new rust-playground
```
================================================================================
#### add git ignore
```
touch .gitignore
```
```
# Ignore compiled binary files
target/
# Ignore compiled files
*.rs.bk
# Ignore Cargo.lock file
Cargo.lock
# Ignore editor backup files
*~
```
================================================================================
#### add clippy
```
rustup component add clippy
```
#### add cargo-watch. This will watch for changes and run the project
```
cargo install cargo-watch
```
#### Run the project with quietly compile (qc)
```
cargo-watch -qc -x run -x clippy
```