Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon

Rust 1.29 is out with improvements to its package manager, Cargo

Save for later
  • 2 min read
  • 14 Sep 2018

article-image

Yesterday, the Rust team announced next version release of their systems programming language, Rust 1.29.

Users using the previous versions of Rust installed via rustup, can easily get this latest version by a simple command:

$ rustup update stable


This Rust 1.29 release has lesser features. This is because the 1.29 cycle was spent preparing for the upcoming releases, Rust 1.30 and 1.31 that will have a lot more features in them.

What’s new in Rust 1.29?


This stable release of Rust has two most important improvements to Cargo, Rust’s package manager. The new improvements include

  • cargo fix can automatically fix your code that has warnings
  • cargo clippy is a bunch of lints to catch common mistakes and improve your Rust code

cargo fix


Rust 1.29 includes a new subcommand for Cargo known as cargo fix. This is the initial release of cargo fix that fixes a small number of warnings in the compiler. The compiler has an API for this, and it only suggests fixing lints that the team says, recommends correct code. Over time, cargo fix can be expanded based on user suggestions to automatically fix more warnings.

cargo clippy


Clippy has a large number of additional warnings that users can run against their Rust code.

Users can now check out a preview of cargo clippy through Rustup, by the following command:

$ rustup component add clippy-preview


Clippy has not yet reached 1.0. However, its lints may change. The Rust team will release a clippy component once it has stabilized. Users can’t use clippy with cargo-fix yet, really. This is still in work in progress.

Unlock access to the largest independent learning library in Tech for FREE!
Get unlimited access to 7500+ expert-authored eBooks and video courses covering every tech area you can think of.
Renews at €18.99/month. Cancel anytime

Additional updates in Rust 1.29


To have a detailed information on Rust 1.29, read its release notes.

Deno, an attempt to fix Node.js flaws, is rewritten in Rust

Working with Shared pointers in Rust: Challenges and Solutions [Tutorial]

Rust Language Server, RLS 1.0 releases with code intelligence, syntax highlighting and more