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

Chapter 5. Changes in Rust Toolset in Red Hat Developer Tools 2018.4


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

5.1. Rust

Rust has been updated from version 1.26.2 to 1.29.2. Notable changes include:

  • Explicit SIMD: While Rust’s code generator will automatically try to use SIMD when possible, developers can now exercise more control over this. Using #[cfg(target_feature = "avx2")] will detect if that feature is globally enabled, and the #[target_feature = "avx2"] attribute will enable that feature for the codegen of a particular function. The std::arch module provides explicit SIMD intrinsics for different targets.
  • dyn Trait is the new preferred syntax for trait objects that dynamically dispatch method calls. For example, Box<Debug> is now Box<dyn Debug>. This is intended to provide better contrast to impl Trait, which always statically dispatches method calls since its concrete type is known.
  • The #[must_use] attribute can be applied to functions, raising a compiler warning if the return value is not used by the caller. This was previously only available on type definitions.
  • New library stabilizations like Iterator::try_fold and Option::filter.
  • Global allocators are now supported to override the default allocator configured by the compiler (by default, glibc malloc in rust-toolset). For instance, the jemallocator crate lets one choose jemalloc instead.
  • The compiler has improved diagnostics for format strings, indicating more specific reasons why a format is invalid.
  • New library stabilizations such as NonZeroU<n> wrappers. These enable size optimizations for numbers that will never be zero, like using zero to mean None in an Option<NonZeroU32>.
  • #[test] functions can now return Result values, similar to the prior change allowing this on main().

5.2. cargo

The cargo tool has been updated from version 0.26.0 to 1.29.0. Notable changes include:

  • The new --target-dir option may be used to set the build output path.
  • cargo will now automatically discover tests, examples, and binaries.
  • Published crates are not allowed to modify their src directory.

5.3. cargo-vendor

The cargo-vendor tool has been updated from version 0.1.13 to 0.1.17.

5.4. Rust Language Server

The Rust Language Server (RLS) version 0.130.0 has been added to Red Hat Developer Tools. This tool enables integration of Rust with Integrated development environments. RLS is provided by the rust-toolset-8-rls-preview package.

맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

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

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

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

Red Hat 소개

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

Theme

© 2025 Red Hat