File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -298,20 +298,29 @@ The `bench` profile inherits the settings from the [`release`](#release) profile
298
298
299
299
#### Build Dependencies
300
300
301
- All profiles, by default, do not optimize build dependencies (build scripts,
302
- proc macros, and their dependencies). The default settings for build overrides
303
- are:
301
+ To compile quickly, all profiles, by default, do not optimize build
302
+ dependencies (build scripts, proc macros, and their dependencies), and avoid
303
+ computing debug info when a build dependency is not used as a runtime
304
+ dependency. The default settings for build overrides are:
304
305
305
306
``` toml
306
307
[profile .dev .build-override ]
307
308
opt-level = 0
308
309
codegen-units = 256
310
+ debug = false # when possible
309
311
310
312
[profile .release .build-override ]
311
313
opt-level = 0
312
314
codegen-units = 256
313
315
```
314
316
317
+ However, if errors occur while running build dependencies, turning full debug
318
+ info on will improve backtraces and debuggability when needed:
319
+
320
+ ``` toml
321
+ debug = true
322
+ ```
323
+
315
324
Build dependencies otherwise inherit settings from the active profile in use, as
316
325
described in [ Profile selection] ( #profile-selection ) .
317
326
You can’t perform that action at this time.
0 commit comments