installed 0.1.0

List installed software on Windows and macOS
docs.rs failed to build installed-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

List Apps

A simple cross-platform crate that lists all the apps installed on a system. Windows and MacOS are supported.

Usage

Single entrypoint is installed::list() which returns an iterator of Apps. 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(())
}

License