6 releases
0.1.4 | Mar 18, 2025 |
---|---|
0.1.3 | Feb 21, 2025 |
0.1.2 | Jan 7, 2025 |
0.1.1 | Apr 12, 2024 |
0.0.0 | Mar 7, 2023 |
#184 in Windows APIs
188,410 downloads per month
Used in 478 crates
(14 directly)
14KB
164 lines
Windows version information
The windows-version crate provides reliable operating system version information without the need for application manifest files.
Start by adding the following to your Cargo.toml file:
[dependencies.windows-version]
version = "0.1"
Make use of Windows version information as needed:
use windows_version::*;
println!("Current version: {:?}", OsVersion::current());
if is_server() {
println!("Running on a Windows Server release.");
}
if OsVersion::current() >= OsVersion::new(10, 0, 0, 12345) {
println!("Can use a feature available on this version or later.")
}