Rust 1.72.0 发布,未来支持版本最低为 Windows 10
Rust 1.72.0 稳定版已发布。 主要变化: 在错误中报告可能有用的cfg禁用项 现在支持使用cfg有条件地启用 Rust 代码,例如仅通过某些 crate 功能或仅在特定平台上提供某些功能。 以前,以这种方式禁用的项目实际上对编译器来说是不可见的。不过现在,编译器会记住这些项目的名称和cfg条件,因此它可以报告尝试调用的函数是否不可用。 Compiling my-project v0.1.0 (/tmp/my-project) error[E0432]: unresolved import `rustix::io_uring` --> src/main.rs:1:5 | 1 | use rustix::io_uring; | ^^^^^^^^^^^^^^^^ no `io_uring` in the root | note: found an item that was configured out --> /home/username/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ru...





