change book name from the-way-to-rust to rust-course

pull/89/head
sunface 3 years ago
parent 28443caa1f
commit 7dfd344efb

@ -1,7 +1,7 @@
# Rust编程指南 # Rust编程指南
- 官方书名: Rust编程指南(The Way To Rust) - 官方书名: Rust编程指南(Rust Course)
- 官方网址: https://wayto.rs - 官方网址: https://course.rs
- 修订时间: **尚未发行** - 修订时间: **尚未发行**
- Rust版本Rust edition 2021 - Rust版本Rust edition 2021
- QQ交流群 1009730433 - QQ交流群 1009730433

@ -1,13 +1,13 @@
[book] [book]
authors = ["sunface"] authors = ["sunface"]
language = "zh-CN" language = "zh-CN"
title = "Rust编程指南(The Way To Rust)" title = "Rust编程指南(Rust Course)"
[output.html] [output.html]
additional-css = ["assets/ferris.css", "assets/theme/2018-edition.css"] additional-css = ["assets/ferris.css", "assets/theme/2018-edition.css"]
additional-js = ["assets/ferris.js"] additional-js = ["assets/ferris.js"]
git-repository-url = "https://github.com/rustcollege" git-repository-url = "https://github.com/rustcollege"
edit-url-template = "https://github.com/rustcollege/the-way-to-rust/edit/main/{path}" edit-url-template = "https://github.com/rustcollege/rust-course/edit/main/{path}"
[output.html.fold] [output.html.fold]
enable = true enable = true

@ -13,7 +13,7 @@ git config user.email "cto@188.com"
git add . git add .
git commit -m 'release book' git commit -m 'release book'
git branch -M gh-pages git branch -M gh-pages
git remote add origin https://github.com/rustcollege/the-way-to-rust git remote add origin https://github.com/rustcollege/rust-course
## push to github pages ## push to github pages
git push -u -f origin gh-pages git push -u -f origin gh-pages

@ -62,6 +62,7 @@
- [条件编译、条件依赖](cargo/feature.md) - [条件编译、条件依赖](cargo/feature.md)
- [配置参数(todo)](cargo/manifest.md) - [配置参数(todo)](cargo/manifest.md)
- [自定义构建脚本](cargo/build-js.md) - [自定义构建脚本](cargo/build-js.md)
- [Cargo profile](cargo/profile.md)
- [测试](test/intro.md) - [测试](test/intro.md)
- [单元测试](test/unit.md) - [单元测试](test/unit.md)

@ -4,8 +4,8 @@
## 关于本书 ## 关于本书
- 官方书名: Rust编程指南(The Way To Rust) - 官方书名: Rust编程指南(Rust Course)
- 官方网址: https://wayto.rs - 官方网址: https://course.rs
- 修订时间: 尚未发行 - 修订时间: 尚未发行
- Rust版本Rust edition 2021 - Rust版本Rust edition 2021
- QQ交流群 1009730433 - QQ交流群 1009730433

@ -0,0 +1,4 @@
# Cargo profile
## custom profiles (rust 1.57.0)

@ -5,3 +5,14 @@
## crates ## crates
1. [高性能Mutex库](https://github.com/Amanieu/parking_lot) 1. [高性能Mutex库](https://github.com/Amanieu/parking_lot)
## 不要通过环境变量来控制在不同环境下的tracing行为
这种控制消耗很大随着rust 1.57.0版本发布可以使用自定义cargo profile的方式来实现
cargo profile可以做
Enable costlier tracing/logging/debug on staging builds, or force LTO only for production builds.
为何不要用环境变量来控制tracing库的行为:
If your app is in any way performance sensitive you are carrying a significant cost for that.

@ -0,0 +1,3 @@
## 可以为rust-analyzer指定一个check文件夹避免构建的cache被lock住
You can already setup rust-analyzer to use different folder. I set `Check On Save` to `check` and in `Check On Save: Extra Args` to `--target-dir target/rust-analyzer-target`.
Loading…
Cancel
Save