이 콘텐츠는 선택한 언어로 제공되지 않습니다.

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
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2026 Red Hat