| Crates.io | os_name |
| lib.rs | os_name |
| version | 0.1.1 |
| created_at | 2025-03-06 20:46:01.021416+00 |
| updated_at | 2025-03-06 22:25:46.547384+00 |
| description | Cross platform library to get os name and version |
| homepage | |
| repository | https://github.com/caido/os_name |
| max_upload_size | |
| id | 1581788 |
| size | 15,650 |
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");
serde: Enable this feature to add Serde support.