winer 0.1.5

Helper library for Wine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use winer::{get_build_str, get_host_version, get_version_str};

fn main() {
    println!("Version: {}", get_version_str().unwrap_or("N/A"));
    println!("Build: {}", get_build_str().unwrap_or("N/A"));

    let host = get_host_version();
    println!(
        "Sysname: {}",
        host.as_ref().and_then(|h| h.sysname_str()).unwrap_or("N/A")
    );
    println!(
        "Release: {}",
        host.as_ref().and_then(|h| h.release_str()).unwrap_or("N/A")
    );
}