Crates.io | desktop |
lib.rs | desktop |
version | 1.0.5 |
source | src |
created_at | 2018-10-10 15:25:52.153167 |
updated_at | 2019-01-01 19:45:03.480118 |
description | Detects the target platform and it's architecture, vendor and desktop environment |
homepage | |
repository | https://github.com//AregevDev//desktop-rs |
max_upload_size | |
id | 89077 |
size | 18,357 |
A simple and lightweight library that can detect the target platform and it's architecture and desktop environment.
Since 1.0.0 this crate uses the 2018 edition
Rust 2018
use desktop::Desktop;
fn main() {
let d = Desktop::get();
println!("We are running {} architecure {} using the {} desktop", d.os_name(), d.arch(), d.environment())
}
For the 2015 edition just add extern crate desktop;
at the top of the file
Feel free to hop over https://github.com/AregevDev/desktop-rs/issues
Desktop is licenced under the terms of Apache-2.0 license