How it works...
There are many aspects of a project that can be configured, most of which are not needed for smaller programs and libraries (unless it's for special architectures). This recipe can only show a few—easy—examples of what's possible, but there is more in the cargo book about configuration (https://doc.rust-lang.org/cargo/reference/config.html) and the manifest (https://doc.rust-lang.org/cargo/reference/manifest.html#the-profile-sections).
In the first steps, cargo is configured to overlook overflow errors by changing a flag in the cargo configuration. While it might seem a foolish step at first, it is sometimes necessary to allow overflows for drivers or other low-level electronics to operate.
Many other options customize the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access