Build Status

os_type

Rust library to detect the operating system type

Usage

Include this into your Cargo.toml:

toml [dependencies] os_type="0.5.0"

In your code:

```rust extern crate os_type;

fn foo() { match ostype::currentplatform() { os_type::OSType::OSX => /Do something here/, _ => None } } ```

Right now, the following operating system types can be returned: - Unknown - Redhat - OSX - Ubuntu - Debian - Windows - Arch

If you need support for more OS types, I am looking forward to your Pull Request.

License

MIT