Skip to content

Latest commit

Β 

History

History
30 lines (20 loc) Β· 1.03 KB

File metadata and controls

30 lines (20 loc) Β· 1.03 KB

windows-version

Reliable OS version information without an application manifest.

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.


Internal documentation

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.

How it's built

src/bindings.rs is generated by tool_bindings from crates/tools/bindings/src/version.txt; OsVersion and the comparison logic are hand-written.

Testing

Run cargo test -p windows-version; see also the workspace test crates.