Chapter 4. Changes in Rust Toolset in Red Hat Developer Tools 2018.1


This chapter lists some notable changes in Rust Toolset since its previous release.

4.1. Rust

Rust has been updated from version 1.20.0 to 1.22.1. Notable changes include:

  • The Option type implements the Try trait for the ? operator.
  • Assignment operations have been implemented for references on the right hand side of assignment:

    x = &1; y += x;
    Copy to Clipboard Toggle word wrap
  • Types implementing the Drop trait can be const or static.
  • Static references to literals are allowed.
  • Arrays and tuples of Clone types implement the Clone trait themselves.
  • Tag values of enumerations can be read with the std::mem::discriminant() function.
  • The Iterator::for_each() function has been added to apply a function to all items of an iterator.
  • Functions min() and max() have been added to the Ord trait.
  • The default amount of code generation units for debug builds has been changed to 16.

4.2. cargo

The cargo tool has been updated from version 0.21.1 to 0.23.0. Notable changes include:

  • Support for specifying multiple crates at once has been added to the cargo install command.
  • Support for enhanced patterns has been added to the include and exclude fields of Cargo.toml project manifest files.
  • Support for overriding parts of the crate dependency graph with the [patch] section of Cargo.toml files has been added.
  • Support for using dependencies vendored from git repositories has been added.

4.3. cargo-vendor

The cargo-vendor plugin has been updated from version 0.1.12 to 0.1.13. Notable changes include:

  • An option --disallow-duplicates has been added to prevent duplication of vendored dependencies.
  • Error messages are printed to the standard error output (stderr).

    Note that this allows redirecting the output of the cargo vendor command into a file for direct use.

4.4. Known Issues

  • The outdated rust-toolset-7-dockerfiles package has been removed from Rust Toolset 7.1. The package is no longer present in fresh installations, but it remains installed on a system where Rust Toolset 7.0 is updated to version 7.1. To work around this problem, remove the package manually by using this command:

    # yum remove rust-toolset-7-dockerfiles
    Copy to Clipboard Toggle word wrap
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat