#name #platform #cross-platform #version #info

os_name

Cross platform library to get os name and version

2 releases

new 0.1.1 Mar 6, 2025
0.1.0 Mar 6, 2025

#349 in Operating systems

Download history 76/week @ 2025-03-01

76 downloads per month

MIT license

10KB
218 lines

OS Name

github crates.io

Get OS details on multiple platforms. The goal of the library is to provide a simple interface to get the OS kind, version and name.

use os_name::get_os_info;

let os_info = get_os_info();

assert_eq!(os_info.name.unwrap(), "Sonoma");

Features

  • serde: Enable this feature to add Serde support.

Dependencies

~200KB