days
-1
0
hours
0
-1
minutes
-4
-4
seconds
-1
0
search
Rust goodies galore

Rust 1.38 release: Pipelined compilation for Cargo & more

Sarah Schlothauer
rust
© Shutterstock / Alex Popov

According to statistics from GitHub, Rust is one of the fastest growing programming languages! The latest update for Rust includes a few changes to the library and pipelined compilation. See what’s added in the 1.38.0 stable release and how it can help cut down compilation speed in certain instances. Let’s take a closer look at the details.

According to GitHub, Rust is the 5th fastest growing programming language. More and more developers are coding in Rust, submitting PRs, contributing to open source, and creating new projects.

Rust-lang v1.38.0 stable arrived on September 26, 2019. Check out what’s new in the programming language, including pipelined compilation and a few library changes.

Feature highlight: Pipelined compilation

With this new release, Cargo will now automatically begin building dependent crates as soon as the metadata is ready.

Since you don’t need to wait for the dependencies to be fully built when compiling a crate, this may help improve some compilation speeds.

According to the announcement blog, this will likely not have a major effect on builds for single creates. However, Rust found an increase of 10-20% compilation speed for some crate graphs. Click here to find out more about testing pipelined rustc compilation out.

Check out this tool created for exploring crate graph build times. Be sure to have a look at the PR for enabling pipelined compilation by default.

SEE ALSO: How To Make Loveliness: an HTML treasure hunt

New lints for incorrect uses of mem::{uninitialized, zeroed}

In a future release, mem::uninitializedwill be deprecated. Although not deprecated yet, this release limits some of its incorrect uses in order to prevent unsafe usage. Incorrect usage will result in a warning in order to help identify incorrect code.

However, this update does not include every unsound usage. Thus, in order to play it safe, users should move their code to  MaybeUninit instead.

#[deprecated] attribute change

Now, the #[deprecated] attribute can be used on macros.

Check out the PR.

#[global_allocator] attribute change

The #[global_allocator] attribute can now be used in submodules.

See the PR.

Library changes

This version includes a variety of changes made to the library. Taken from the release notes on GitHub, these changes include:

What features or changes do you want to see in future releases?

For more information about the newest update and a full list of changes, view the Rust 1.38.0 blog post, or browse the release notes on GitHub.

Author
Sarah Schlothauer

Sarah Schlothauer

All Posts by Sarah Schlothauer

Sarah Schlothauer is an assistant editor for JAXenter.com. She received her Bachelor's degree from Monmouth University and is currently enrolled at Goethe University in Frankfurt, Germany where she is working on her Masters. She lives in Frankfurt with her husband and cat.

Leave a Reply

Be the First to Comment!

avatar
400
  Subscribe  
Notify of