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,18 +298,27 @@ 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. The default settings for build overrides are:
304
304
305
305
``` toml
306
306
[profile .dev .build-override ]
307
307
opt-level = 0
308
308
codegen-units = 256
309
+ debug = false
309
310
310
311
[profile .release .build-override ]
311
312
opt-level = 0
312
313
codegen-units = 256
314
+ debug = false
315
+ ```
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
313
322
```
314
323
315
324
Build dependencies otherwise inherit settings from the active profile in use, as
You can’t perform that action at this time.
0 commit comments