跳到正文
Hacker News (official RSS)(github.com)·· 10 天前精選品質評分84

Rust 1.100.0 釋出,穩定化自訂配置器並更新 Cargo

Rust 1.100.0

重點導讀

Rust 1.100.0 釋出,帶來語言、標準函式庫、Cargo、Rustdoc 與平臺支援更新。

  • 語言與標準函式庫:穩定化 never type 與自訂配置器,並新增多項 API 和 lint。

AI 伴隨問答

自備 Key 深度分析

針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:

推薦理由

Rust 1.100.0 穩定化自訂配置器,並為 Cargo 加入可控的內建 lint 與依賴冷卻設定,呈現語言和套件管理工具的同步變更。

正文 · 原文

Language

Compiler

Platform Support

Refer to Rust's platform support page for more information on Rust's tiered platform support.

Libraries

Stabilized APIs

Cargo

  • Introduced Cargo's own linting system: some Cargo warnings are now emitted as lints that users can control in the [lints.cargo] table. This includes a new built-in unused dependency check via the cargo::unused_dependencies lint. docs #17298
  • Introduced minimum publish age configurations, also known as dependency cooldowns. When the relevant config is set, the resolver ignores versions published more recently than that, unless they are already in Cargo.lock. (RFC 3923) docs #17335
  • cargo-install: now uses the existing lockfile in the .crate tarball by default. --locked in cargo install becomes a no-op. #17388
  • Cargo now uses a new directory layout for intermediate build artifacts. Tools that inspect the build directory may need to use Cargo’s JSON messages to locate build artifacts instead of relying on the build directory layout. The layout is not a stable interface and is subject to change. (build cache doc) #17354

Rustdoc

Compatibility Notes

Other

讀者討論

理性交流 · 即時討論