Registry / utility / os-type

os-type

JSON →
library2.6.0rscratesunverified

Detect the operating system type

# Cargo.toml [dependencies] os_type = "2.6.0"
INSTALL
IMPORT
SIG · OS-TYPE
O
os-type
utilityrustv2.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

current_platform
use os_type::current_platform;

Get the current operating system type.

use os_type::current_platform; let platform = current_platform(); println!("OS: {}", platform.os_type);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
os-type — cargo add os-type · libregistry