- 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.
推薦閱讀
- Visual Studio 2015 Cookbook(Second Edition)
- SQL查詢:從入門到實踐(第4版)
- Sybase數據庫在UNIX、Windows上的實施和管理
- 一個64位操作系統的設計與實現
- MATLAB Graphics and Data Visualization Cookbook
- 計算機應用基礎教程上機指導與習題集(微課版)
- Google Cloud Platform for Developers
- 數據庫應用系統技術
- 云計算
- 大數據時代系列(套裝9冊)
- Rust High Performance
- Arquillian Testing Guide
- 一類智能優化算法的改進及應用研究
- SQL Server 2012 數據庫教程(第3版)
- 信息技術導論