this post was submitted on 24 Jan 2024
90 points (97.9% liked)
Rust
5346 readers
1 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
As mentioned in the article, this concerns release mode, which already does not have symbols by default for user code. It does have symbols for the standard library code, however, due to how the binaries for the standard library are shipped (i.e. with symbols only). This change simply also removes standard library symbols.
If you need symbols, you can use default debugging build, or if you need both compiler optimizations and debugging symbols you can create a custom profile that inherets from release with debug = true. The second you already need to do to get full debugging symbols right now, so this isn't really much of a change from a workflow standpoint.
This is the sentence that tripped me up. But on rereading I'm assuming the debug profile does enable this.
Yeah, definitely :)
The default dev profile is defined as:
You can find more information in the cargo book page on profiles
I knew I had to be missing something. Thanks for the insight mate.