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.


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

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.


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


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