Skip to content

Rust crate for parsing the /etc/os-release file, common with Linux distributions

License

Notifications You must be signed in to change notification settings

pop-os/os-release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

os-release

Rust crate that provides a type for parsing the /etc/os-release file, or any file with an os-release-like format.

extern crate os_release;

use os_release::OsRelease;
use std::io;

pub fn main() -> io::Result<()> {
    let release = OsRelease::new()?;
    println!("{:#?}", release);
    Ok(())
}

About

Rust crate for parsing the /etc/os-release file, common with Linux distributions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages