Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

38
tldr/cargo-run Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# cargo run
> Run the current Cargo package.
> Note: the working directory of the executed binary will be set to the current working directory.
> More information: <https://doc.rust-lang.org/cargo/commands/cargo-run.html>.
- Run the default binary target:
`cargo run`
- Run the specified binary:
`cargo run --bin {{name}}`
- Run the specified example:
`cargo run --example {{name}}`
- Activate a space or comma separated list of features:
`cargo run --features {{feature1 feature2 ...}}`
- Disable the default features:
`cargo run --no-default-features`
- Activate all available features:
`cargo run --all-features`
- Run with the given profile:
`cargo run --profile {{name}}`