Nightly Rust

Nightly Rust can speed up your code even more in certain situations. If you don't need compatibility with stable Rust, you might want to check all the nightly features. In some cases, such as kernel development, it's impossible to get all the required functionality using stable Rust. You can use nightly Rust by overriding the default compiler:

rustup override add nightly

Or, you can call cargo with the +nightly flag. These methods will only work if you use rustup to manage your Rust installation, which you probably should if you have the option.

To use nightly features, you will need to use the #![feature] attribute at the crate level. For example, if you want to use the conservative_impl_trait feature, you will need to add ...

Get Rust High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.