Crates.io | os-release-rs |
lib.rs | os-release-rs |
version | 0.1.0 |
source | src |
created_at | 2022-06-26 23:24:28.850157 |
updated_at | 2022-06-26 23:24:28.850157 |
description | Rust wrapper for /etc/os-release |
homepage | |
repository | https://github.com/0xMRTT/os-release-rs |
max_upload_size | |
id | 613856 |
size | 46,736 |
os-release-rs
Rust wrapper for /etc/os-release
file.
Add this to your Cargo.toml
:
[dependencies]
os-release-rs = "0.1.0"
use os_release_rs::OsRelease;
fn main() {
let os_release = OsRelease::new().unwrap();
println!("I use {} btw!", os_release.name);
}
This crate is under the GNU General Public License v3.0.
See LICENSE for more information.
Open an issue or pull request to add or improve a feature.
neors
- Neofetch replacement in Rust