Since one of the last Rust updates the feature flag windows_by_handle
seems to be ignored.
It is contained in the lib.rs file as follows:
#![cfg_attr(windows, feature(windows_by_handle))]
But when I use, e.g. metadata.volume_serial_number()
then I get the following compile error:
error[E0658]: use of unstable library feature 'windows_by_handle'
--> scandir\benches/walk.rs:56:39
|
56 | number_of_links: metadata.number_of_links(),
| ^^^^^^^^^^^^^^^
|
= note: see issue #63010 <https://github.com/rust-lang/rust/issues/63010> for more information
= help: add `#![feature(windows_by_handle)]` to the crate attributes to enable
= note: this compiler was built on 2024-04-14; consider upgrading it if it is out of date
Older versions of the Rust compiler didn't throw the above error.
The corresponding code can be found here:
I'm using latest nightly nightly-x86_64-pc-windows-msvc.