Skip to content

Commit e3657eb

Browse files
author
Leo
committed
Add cargo aliases
Cargo aliases are not that easy to find, I think it’s handy to have it here. This list comes from rust-lang/cargo#6218
1 parent 4e69699 commit e3657eb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

content/_index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,10 @@ Some commands and tools that are good to know.
572572
| Command | Description |
573573
|--------| ---- |
574574
| `cargo init` | Create a new project for the latest edition. |
575-
| `cargo build` | Build the project in debug mode (`--release` for all optimization). |
576-
| `cargo check` | Check if project would compile (much faster). |
575+
| `cargo build`, `cargo b` | Build the project in debug mode (`--release` for all optimization). |
576+
| `cargo check`, `cargo c` | Check if project would compile (much faster). |
577+
| `cargo test`, `cargo t` | Run tests for the project. |
578+
| `cargo run`, `cargo r` | Run your project, if a binary is produced (main.rs). |
577579
| `cargo rustc -- -Zunpretty=X` | Show more desugared Rust code, in particular with X being: |
578580
| | `expanded` Show with expanded macros, ... |
579581
| `rustup docs` | Open offline Rust documentation, good on a plane! |

0 commit comments

Comments
 (0)