Update cheatsheets

This commit is contained in:
ivuorinen
2025-04-23 00:19:06 +00:00
parent 8ba6f7fc9e
commit 94c28849c9
382 changed files with 1183 additions and 1056 deletions

View File

@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Compile with optimizations (`s` means optimize for binary size; `z` is the same with even more optimizations):
`rustc -C lto -C opt-level={{0|1|2|3|s|z}} {{path/to/main.rs}}`
`rustc {{[-C|--codegen]}} lto {{[-C|--codegen]}} opt-level={{0|1|2|3|s|z}} {{path/to/main.rs}}`
- Compile with debugging information:
@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
- Compile with architecture-specific optimizations for the current CPU:
`rustc -C target-cpu={{native}} {{path/to/main.rs}}`
`rustc {{[-C|--codegen]}} target-cpu={{native}} {{path/to/main.rs}}`
- Display the target list (Note: you have to add a target using `rustup` first to be able to compile for it):