Skip to content

Commit

Permalink
Add cargo aliases
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Leo committed Aug 28, 2020
1 parent 1dd62b4 commit 23126b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,10 @@ Some commands and tools that are good to know.
| Command | Description |
|--------| ---- |
| `cargo init` | Create a new project for the latest edition. |
| `cargo build` | Build the project in debug mode (`--release` for all optimization). |
| `cargo check` | Check if project would compile (much faster). |
| `cargo build`, `cargo b` | Build the project in debug mode (`--release` for all optimization). |
| `cargo check`, `cargo c` | Check if project would compile (much faster). |
| `cargo test`, `cargo t` | Run tests for the project. |
| `cargo run`, `cargo r` | Run your project, if a binary is produced (main.rs). |
| `cargo rustc -- -Zunpretty=X` | Show more desugared Rust code, in particular with X being: |
| | `expanded` Show with expanded macros, ... |
| `rustup docs` | Open offline Rust documentation, good on a plane! |
Expand Down

0 comments on commit 23126b0

Please sign in to comment.