Reliable OS version information without an application manifest.
- π¦ crates.io
- π docs.rs
- π Getting started
- π Source
windows-version reports the real operating system version even when the process
has no version manifest β useful for feature detection. OsVersion implements
Ord, so you can compare against a minimum build, and is_server distinguishes
Windows Server releases.
The remainder of this page covers how the crate is built and maintained. It is
for contributors and is not needed to use windows-version.
src/bindings.rs is generated by tool_bindings from
crates/tools/bindings/src/version.txt; OsVersion and the comparison logic are
hand-written.
Run cargo test -p windows-version; see also the workspace test crates.