os-release-rs

Crates.ioos-release-rs
lib.rsos-release-rs
version0.1.0
sourcesrc
created_at2022-06-26 23:24:28.850157
updated_at2022-06-26 23:24:28.850157
descriptionRust wrapper for /etc/os-release
homepage
repositoryhttps://github.com/0xMRTT/os-release-rs
max_upload_size
id613856
size46,736
0xMRTT (0xMRTT)

documentation

README

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

Commit count: 33

cargo fmt