From 402f21971898645c73a68de45b0003b957417975 Mon Sep 17 00:00:00 2001 From: sunface Date: Mon, 28 Mar 2022 14:37:46 +0800 Subject: [PATCH] update toc --- src/SUMMARY.md | 52 +++++++++---------- src/{toolchains => }/cargo/getting-started.md | 0 src/{toolchains => }/cargo/git-auth.md | 0 .../cargo/guide/build-cache.md | 0 .../cargo/guide/cargo-cache.md | 0 .../cargo/guide/cargo-toml-lock.md | 0 .../cargo/guide/dependencies.md | 0 .../cargo/guide/download-package.md | 0 src/{toolchains => }/cargo/guide/intro.md | 0 .../cargo/guide/package-layout.md | 0 src/{toolchains => }/cargo/guide/tests-ci.md | 0 src/{toolchains => }/cargo/guide/why-exist.md | 0 src/{toolchains => }/cargo/intro.md | 0 .../cargo/reference/build-script/examples.md | 0 .../cargo/reference/build-script/intro.md | 0 .../cargo/reference/cargo-target.md | 0 .../cargo/reference/configuration.md | 0 .../cargo/reference/deps-overriding.md | 0 src/{toolchains => }/cargo/reference/env.md | 0 .../cargo/reference/features/examples.md | 0 .../cargo/reference/features/intro.md | 0 src/{toolchains => }/cargo/reference/intro.md | 0 .../cargo/reference/manifest.md | 0 .../cargo/reference/package-id.md | 0 .../cargo/reference/profile.md | 0 .../cargo/reference/profiles.md | 0 .../reference/publishing-on-crates.io.md | 0 .../cargo/reference/specify-deps.md | 0 .../cargo/reference/workspaces.md | 0 src/toolchains/intro.md | 5 -- 30 files changed, 26 insertions(+), 31 deletions(-) rename src/{toolchains => }/cargo/getting-started.md (100%) rename src/{toolchains => }/cargo/git-auth.md (100%) rename src/{toolchains => }/cargo/guide/build-cache.md (100%) rename src/{toolchains => }/cargo/guide/cargo-cache.md (100%) rename src/{toolchains => }/cargo/guide/cargo-toml-lock.md (100%) rename src/{toolchains => }/cargo/guide/dependencies.md (100%) rename src/{toolchains => }/cargo/guide/download-package.md (100%) rename src/{toolchains => }/cargo/guide/intro.md (100%) rename src/{toolchains => }/cargo/guide/package-layout.md (100%) rename src/{toolchains => }/cargo/guide/tests-ci.md (100%) rename src/{toolchains => }/cargo/guide/why-exist.md (100%) rename src/{toolchains => }/cargo/intro.md (100%) rename src/{toolchains => }/cargo/reference/build-script/examples.md (100%) rename src/{toolchains => }/cargo/reference/build-script/intro.md (100%) rename src/{toolchains => }/cargo/reference/cargo-target.md (100%) rename src/{toolchains => }/cargo/reference/configuration.md (100%) rename src/{toolchains => }/cargo/reference/deps-overriding.md (100%) rename src/{toolchains => }/cargo/reference/env.md (100%) rename src/{toolchains => }/cargo/reference/features/examples.md (100%) rename src/{toolchains => }/cargo/reference/features/intro.md (100%) rename src/{toolchains => }/cargo/reference/intro.md (100%) rename src/{toolchains => }/cargo/reference/manifest.md (100%) rename src/{toolchains => }/cargo/reference/package-id.md (100%) rename src/{toolchains => }/cargo/reference/profile.md (100%) rename src/{toolchains => }/cargo/reference/profiles.md (100%) rename src/{toolchains => }/cargo/reference/publishing-on-crates.io.md (100%) rename src/{toolchains => }/cargo/reference/specify-deps.md (100%) rename src/{toolchains => }/cargo/reference/workspaces.md (100%) delete mode 100644 src/toolchains/intro.md diff --git a/src/SUMMARY.md b/src/SUMMARY.md index dbb0ff30..13888b81 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -137,32 +137,32 @@ - [断言 assertion](test/assertion.md) - [用 Github Actions 进行持续集成](test/ci.md) - [基准测试 benchmark](test/benchmark.md) - -- [Rust 工具链指南](toolchains/intro.md) - - [Cargo 使用指南](toolchains/cargo/intro.md) - - [上手使用](toolchains/cargo/getting-started.md) - - [基础指南](toolchains/cargo/guide/intro.md) - - [为何会有 Cargo](toolchains/cargo/guide/why-exist.md) - - [下载并构建 Package](toolchains/cargo/guide/download-package.md) - - [添加依赖](toolchains/cargo/guide/dependencies.md) - - [Package 目录结构](toolchains/cargo/guide/package-layout.md) - - [Cargo.toml vs Cargo.lock](toolchains/cargo/guide/cargo-toml-lock.md) - - [测试和 CI](toolchains/cargo/guide/tests-ci.md) - - [Cargo 缓存](toolchains/cargo/guide/cargo-cache.md) - - [Build 缓存](toolchains/cargo/guide/build-cache.md) - - [进阶指南](toolchains/cargo/reference/intro.md) - - [指定依赖项](toolchains/cargo/reference/specify-deps.md) - - [依赖覆盖](toolchains/cargo/reference/deps-overriding.md) - - [Cargo.toml 清单详解](toolchains/cargo/reference/manifest.md) - - [Cargo Target](toolchains/cargo/reference/cargo-target.md) - - [工作空间 Workspace](toolchains/cargo/reference/workspaces.md) - - [条件编译 Features](toolchains/cargo/reference/features/intro.md) - - [Features 示例](toolchains/cargo/reference/features/examples.md) - - [发布配置 Profile](toolchains/cargo/reference/profiles.md) - - [通过 config.toml 对 Cargo 进行配置](toolchains/cargo/reference/configuration.md) - - [发布到 crates.io](toolchains/cargo/reference/publishing-on-crates.io.md) - - [构建脚本 build.rs](toolchains/cargo/reference/build-script/intro.md) - - [构建脚本示例](toolchains/cargo/reference/build-script/examples.md) + +- [Cargo 使用指南](cargo/intro.md) + - [上手使用](cargo/getting-started.md) + - [基础指南](cargo/guide/intro.md) + - [为何会有 Cargo](cargo/guide/why-exist.md) + - [下载并构建 Package](cargo/guide/download-package.md) + - [添加依赖](cargo/guide/dependencies.md) + - [Package 目录结构](cargo/guide/package-layout.md) + - [Cargo.toml vs Cargo.lock](cargo/guide/cargo-toml-lock.md) + - [测试和 CI](cargo/guide/tests-ci.md) + - [Cargo 缓存](cargo/guide/cargo-cache.md) + - [Build 缓存](cargo/guide/build-cache.md) + - [进阶指南](cargo/reference/intro.md) + - [指定依赖项](cargo/reference/specify-deps.md) + - [依赖覆盖](cargo/reference/deps-overriding.md) + - [Cargo.toml 清单详解](cargo/reference/manifest.md) + - [Cargo Target](cargo/reference/cargo-target.md) + - [工作空间 Workspace](cargo/reference/workspaces.md) + - [条件编译 Features](cargo/reference/features/intro.md) + - [Features 示例](cargo/reference/features/examples.md) + - [发布配置 Profile](cargo/reference/profiles.md) + - [通过 config.toml 对 Cargo 进行配置](cargo/reference/configuration.md) + - [发布到 crates.io](cargo/reference/publishing-on-crates.io.md) + - [构建脚本 build.rs](cargo/reference/build-script/intro.md) + - [构建脚本示例](cargo/reference/build-script/examples.md) + # 高级专题 --- diff --git a/src/toolchains/cargo/getting-started.md b/src/cargo/getting-started.md similarity index 100% rename from src/toolchains/cargo/getting-started.md rename to src/cargo/getting-started.md diff --git a/src/toolchains/cargo/git-auth.md b/src/cargo/git-auth.md similarity index 100% rename from src/toolchains/cargo/git-auth.md rename to src/cargo/git-auth.md diff --git a/src/toolchains/cargo/guide/build-cache.md b/src/cargo/guide/build-cache.md similarity index 100% rename from src/toolchains/cargo/guide/build-cache.md rename to src/cargo/guide/build-cache.md diff --git a/src/toolchains/cargo/guide/cargo-cache.md b/src/cargo/guide/cargo-cache.md similarity index 100% rename from src/toolchains/cargo/guide/cargo-cache.md rename to src/cargo/guide/cargo-cache.md diff --git a/src/toolchains/cargo/guide/cargo-toml-lock.md b/src/cargo/guide/cargo-toml-lock.md similarity index 100% rename from src/toolchains/cargo/guide/cargo-toml-lock.md rename to src/cargo/guide/cargo-toml-lock.md diff --git a/src/toolchains/cargo/guide/dependencies.md b/src/cargo/guide/dependencies.md similarity index 100% rename from src/toolchains/cargo/guide/dependencies.md rename to src/cargo/guide/dependencies.md diff --git a/src/toolchains/cargo/guide/download-package.md b/src/cargo/guide/download-package.md similarity index 100% rename from src/toolchains/cargo/guide/download-package.md rename to src/cargo/guide/download-package.md diff --git a/src/toolchains/cargo/guide/intro.md b/src/cargo/guide/intro.md similarity index 100% rename from src/toolchains/cargo/guide/intro.md rename to src/cargo/guide/intro.md diff --git a/src/toolchains/cargo/guide/package-layout.md b/src/cargo/guide/package-layout.md similarity index 100% rename from src/toolchains/cargo/guide/package-layout.md rename to src/cargo/guide/package-layout.md diff --git a/src/toolchains/cargo/guide/tests-ci.md b/src/cargo/guide/tests-ci.md similarity index 100% rename from src/toolchains/cargo/guide/tests-ci.md rename to src/cargo/guide/tests-ci.md diff --git a/src/toolchains/cargo/guide/why-exist.md b/src/cargo/guide/why-exist.md similarity index 100% rename from src/toolchains/cargo/guide/why-exist.md rename to src/cargo/guide/why-exist.md diff --git a/src/toolchains/cargo/intro.md b/src/cargo/intro.md similarity index 100% rename from src/toolchains/cargo/intro.md rename to src/cargo/intro.md diff --git a/src/toolchains/cargo/reference/build-script/examples.md b/src/cargo/reference/build-script/examples.md similarity index 100% rename from src/toolchains/cargo/reference/build-script/examples.md rename to src/cargo/reference/build-script/examples.md diff --git a/src/toolchains/cargo/reference/build-script/intro.md b/src/cargo/reference/build-script/intro.md similarity index 100% rename from src/toolchains/cargo/reference/build-script/intro.md rename to src/cargo/reference/build-script/intro.md diff --git a/src/toolchains/cargo/reference/cargo-target.md b/src/cargo/reference/cargo-target.md similarity index 100% rename from src/toolchains/cargo/reference/cargo-target.md rename to src/cargo/reference/cargo-target.md diff --git a/src/toolchains/cargo/reference/configuration.md b/src/cargo/reference/configuration.md similarity index 100% rename from src/toolchains/cargo/reference/configuration.md rename to src/cargo/reference/configuration.md diff --git a/src/toolchains/cargo/reference/deps-overriding.md b/src/cargo/reference/deps-overriding.md similarity index 100% rename from src/toolchains/cargo/reference/deps-overriding.md rename to src/cargo/reference/deps-overriding.md diff --git a/src/toolchains/cargo/reference/env.md b/src/cargo/reference/env.md similarity index 100% rename from src/toolchains/cargo/reference/env.md rename to src/cargo/reference/env.md diff --git a/src/toolchains/cargo/reference/features/examples.md b/src/cargo/reference/features/examples.md similarity index 100% rename from src/toolchains/cargo/reference/features/examples.md rename to src/cargo/reference/features/examples.md diff --git a/src/toolchains/cargo/reference/features/intro.md b/src/cargo/reference/features/intro.md similarity index 100% rename from src/toolchains/cargo/reference/features/intro.md rename to src/cargo/reference/features/intro.md diff --git a/src/toolchains/cargo/reference/intro.md b/src/cargo/reference/intro.md similarity index 100% rename from src/toolchains/cargo/reference/intro.md rename to src/cargo/reference/intro.md diff --git a/src/toolchains/cargo/reference/manifest.md b/src/cargo/reference/manifest.md similarity index 100% rename from src/toolchains/cargo/reference/manifest.md rename to src/cargo/reference/manifest.md diff --git a/src/toolchains/cargo/reference/package-id.md b/src/cargo/reference/package-id.md similarity index 100% rename from src/toolchains/cargo/reference/package-id.md rename to src/cargo/reference/package-id.md diff --git a/src/toolchains/cargo/reference/profile.md b/src/cargo/reference/profile.md similarity index 100% rename from src/toolchains/cargo/reference/profile.md rename to src/cargo/reference/profile.md diff --git a/src/toolchains/cargo/reference/profiles.md b/src/cargo/reference/profiles.md similarity index 100% rename from src/toolchains/cargo/reference/profiles.md rename to src/cargo/reference/profiles.md diff --git a/src/toolchains/cargo/reference/publishing-on-crates.io.md b/src/cargo/reference/publishing-on-crates.io.md similarity index 100% rename from src/toolchains/cargo/reference/publishing-on-crates.io.md rename to src/cargo/reference/publishing-on-crates.io.md diff --git a/src/toolchains/cargo/reference/specify-deps.md b/src/cargo/reference/specify-deps.md similarity index 100% rename from src/toolchains/cargo/reference/specify-deps.md rename to src/cargo/reference/specify-deps.md diff --git a/src/toolchains/cargo/reference/workspaces.md b/src/cargo/reference/workspaces.md similarity index 100% rename from src/toolchains/cargo/reference/workspaces.md rename to src/cargo/reference/workspaces.md diff --git a/src/toolchains/intro.md b/src/toolchains/intro.md deleted file mode 100644 index 092c4695..00000000 --- a/src/toolchains/intro.md +++ /dev/null @@ -1,5 +0,0 @@ -# Rust 工具链指南 - -工具链是一门语言的第二灵魂,如果问一个 C++ 程序员,他最羡慕 Rust 什么,那答案很可能就是 Rust 的工具链。 - -而其中最主要的就是 Cargo 包管理工具,下面让我们从它开始。 \ No newline at end of file