1 unstable release

0.1.0 Jun 26, 2022

#852 in Unix APIs

37 downloads per month

GPL-3.0 license

17KB
139 lines

os-release-rs

Rust wrapper for /etc/os-release file.

Installation

Add this to your Cargo.toml:

[dependencies]
os-release-rs = "0.1.0"

Usage

use os_release_rs::OsRelease;

fn main() {
    let os_release = OsRelease::new().unwrap();
    println!("I use {} btw!", os_release.name);
}

License

This crate is under the GNU General Public License v3.0.

See LICENSE for more information.

Contributing

Open an issue or pull request to add or improve a feature.

Used in

No runtime deps