From 3915ba2b274d0f003cd7ad57f5f83b9c2f59c58c Mon Sep 17 00:00:00 2001 From: taotieren Date: Mon, 14 Mar 2022 15:46:51 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=EF=BC=9A=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cargo/guide/build-cache.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/guide/build-cache.md b/src/cargo/guide/build-cache.md index 1096529c..d05c88cd 100644 --- a/src/cargo/guide/build-cache.md +++ b/src/cargo/guide/build-cache.md @@ -15,7 +15,7 @@ | 目录 | 描述 | | ---------------- | ----------------------------------------------------------------------- | | `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` | 出于历史原因: From 9c360cac5751575cbf955365884f2cf86ec4c0b3 Mon Sep 17 00:00:00 2001 From: taotieren Date: Mon, 14 Mar 2022 16:00:59 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=EF=BC=9A=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cargo/guide/build-cache.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/guide/build-cache.md b/src/cargo/guide/build-cache.md index d05c88cd..2eddbc83 100644 --- a/src/cargo/guide/build-cache.md +++ b/src/cargo/guide/build-cache.md @@ -30,7 +30,7 @@ | 目录 | 示例 | | -------------------------- | --------------------------------------- | -| `target//debug` | `target/thumbv7em-none-eabihf/debug/` | +| `target//debug/` | `target/thumbv7em-none-eabihf/debug/` | | `target//release/` | `target/thumbv7em-none-eabihf/release/` | > **注意:**,当没有使用 `--target` 时,`Cargo` 会与构建脚本和过程宏一起共享你的依赖包,对于每个 `rustc` 命令调用而言,[`RUSTFLAGS`](https://course.rs/cargo/reference/configuration.html#配置文件概览) 也将被共享。