os-ver
This library can be used to detect version number of operating system, such as Windows, macOS, iOS and Linux.
Example
[]
= "0.2"
use *;
if_greater_than!;
if_greater_than!;
if_greater_than!;
let version = os_version;
// Print OS version
println!;
if version >= &WIN11 else if version >= &WIN10 else if version >= & new