Crates.io | installed |
lib.rs | installed |
version | 0.1.0 |
source | src |
created_at | 2023-03-12 07:51:29.876565 |
updated_at | 2023-03-12 07:51:29.876565 |
description | List installed software on Windows and macOS |
homepage | |
repository | https://github.com/lyricwulf/installed-rs |
max_upload_size | |
id | 807861 |
size | 27,531 |
A simple cross-platform crate that lists all the apps installed on a system. Windows and MacOS are supported.
Single entrypoint is installed::list()
which returns an iterator of App
s.
Each App
has standardized accessor functions to get metadata.
fn main() -> Result<(), Box<dyn Error>> {
let apps = installed::list()?;
for app in apps {
// metadata accessor fns, these are only evaluated when used
let name = app.name();
let version = app.version();
let publisher = app.publisher();
println!("{name} v{version} by {publisher}");
}
Ok(())
}