|
|
@ -15,7 +15,7 @@
|
|
|
|
| 目录 | 描述 |
|
|
|
|
| 目录 | 描述 |
|
|
|
|
| ---------------- | ----------------------------------------------------------------------- |
|
|
|
|
| ---------------- | ----------------------------------------------------------------------- |
|
|
|
|
| `target/debug/` | 包含了 `dev` profile 的构建输出(`cargo build` 或 `cargo build --debug`) |
|
|
|
|
| `target/debug/` | 包含了 `dev` profile 的构建输出(`cargo build` 或 `cargo build --debug`) |
|
|
|
|
| `target/release` | `release` profile 的构建输出,`cargo build --release` |
|
|
|
|
| `target/release/` | `release` profile 的构建输出,`cargo build --release` |
|
|
|
|
| `target/foo/` | 自定义 `foo` profile 的构建输出,`cargo build --profile=foo` |
|
|
|
|
| `target/foo/` | 自定义 `foo` profile 的构建输出,`cargo build --profile=foo` |
|
|
|
|
|
|
|
|
|
|
|
|
出于历史原因:
|
|
|
|
出于历史原因:
|
|
|
@ -30,7 +30,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
| 目录 | 示例 |
|
|
|
|
| 目录 | 示例 |
|
|
|
|
| -------------------------- | --------------------------------------- |
|
|
|
|
| -------------------------- | --------------------------------------- |
|
|
|
|
| `target/<triple>/debug` | `target/thumbv7em-none-eabihf/debug/` |
|
|
|
|
| `target/<triple>/debug/` | `target/thumbv7em-none-eabihf/debug/` |
|
|
|
|
| `target/<triple>/release/` | `target/thumbv7em-none-eabihf/release/` |
|
|
|
|
| `target/<triple>/release/` | `target/thumbv7em-none-eabihf/release/` |
|
|
|
|
|
|
|
|
|
|
|
|
> **注意:**,当没有使用 `--target` 时,`Cargo` 会与构建脚本和过程宏一起共享你的依赖包,对于每个 `rustc` 命令调用而言,[`RUSTFLAGS`](https://course.rs/cargo/reference/configuration.html#配置文件概览) 也将被共享。
|
|
|
|
> **注意:**,当没有使用 `--target` 时,`Cargo` 会与构建脚本和过程宏一起共享你的依赖包,对于每个 `rustc` 命令调用而言,[`RUSTFLAGS`](https://course.rs/cargo/reference/configuration.html#配置文件概览) 也将被共享。
|
|
|
|