windows-version
Windows version information without application-manifest version virtualization. Prefer capability detection when an API offers it; use version checks for documented build requirements.
Get started
[]
= "0.101"
use OsVersion;
const REQUIRED: OsVersion = new;
println!;
if current >= REQUIRED
Make a version decision
Keep the threshold beside the feature it guards. OsVersion compares major version, minor version,
service pack, and build in that order. A sufficient version does not guarantee optional components,
drivers, hardware, or policies; check those capabilities separately.