File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -298,18 +298,28 @@ 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
315
+ debug = false # when possible
316
+ ```
317
+
318
+ However, if errors occur while running build dependencies, turning full debug
319
+ info on will improve backtraces and debuggability when needed:
320
+
321
+ ``` toml
322
+ debug = true
313
323
```
314
324
315
325
Build dependencies otherwise inherit settings from the active profile in use, as
You can’t perform that action at this time.
0 commit comments