- Hands-On Data Structures and Algorithms with Rust
- Claus Matzinger
- 92字
- 2021-07-02 14:11:45
Profiles
When you run cargo build, cargo build --release, or cargo test, cargo uses profiles to determine individual settings for each stage. While these have reasonable defaults, you might want to customize some settings. The manifest provides these switches with the [profile.dev], [profile.release], [profile.test], and [profile.bench] sections:
[profile.release]
opt-level = 3
debug = false
rpath = false
lto = false
debug-assertions = false
codegen-units = 16
panic = 'unwind'
incremental = false
overflow-checks = false
These values are the defaults (as of writing this book) and are already useful for most users.
推薦閱讀
- 在你身邊為你設計Ⅲ:騰訊服務設計思維與實戰
- 達夢數據庫編程指南
- UDK iOS Game Development Beginner's Guide
- Python數據分析:基于Plotly的動態可視化繪圖
- 大數據營銷:如何讓營銷更具吸引力
- 數據庫技術實用教程
- 大數據治理與安全:從理論到開源實踐
- IPython Interactive Computing and Visualization Cookbook(Second Edition)
- Power BI智能數據分析與可視化從入門到精通
- 區塊鏈技術應用與實踐案例
- 數據挖掘競賽實戰:方法與案例
- Spring Boot 2.0 Cookbook(Second Edition)
- 數據庫原理與設計實驗教程(MySQL版)
- 數據中心經營之道
- Rust High Performance