Crate platform_info[][src]

Expand description

This crate provides the ability to retrieve various information specific to your current platform without having to use platform-specific methods to so. Currently, only information pertinent to a utility like uname is provided; however, in the future, more functionality may become available.

Usage

This crate is available on crate.io, so using it in your project is as simple as adding platform-info to your project’s Cargo.toml, like so:

[dependencies]
platform-info = "0.1"

To see specific usage details, I recommend looking at the uname utility linked above as it makes use of every feature.

Structs

PlatformInfo handles retrieving information for the current platform (a Unix-like operating in this case).

Traits

Uname is meant for types that can provide information relevant to uname.