| Crates.io | app-info |
| lib.rs | app-info |
| version | 0.1.0 |
| created_at | 2025-07-04 13:42:57.066523+00 |
| updated_at | 2025-07-04 13:42:57.066523+00 |
| description | Get the installed apps and icons on the device |
| homepage | |
| repository | https://github.com/zibo-chen/app-info |
| max_upload_size | |
| id | 1738026 |
| size | 67,777 |
app-info is a Rust library for retrieving information about installed applications on macOS and Windows. It provides details such as application name, version, path, icon, and more. The library also supports fetching icons for specific files.
Add the following to your Cargo.toml:
[dependencies]
app-info = "0.1"
use app_info::get_installed_apps;
fn main() {
let apps = get_installed_apps(64).expect("Failed to get installed apps");
for app in apps {
println!("App Name: {}", app.name);
if let Some(icon) = app.icon {
println!("Icon Size: {}x{}", icon.width, icon.height);
}
}
}
use app_info::find_app_by_name;
fn main() {
let app_name = "Calculator";
match find_app_by_name(app_name, 64) {
Ok(app) => println!("Found app: {}", app.name),
Err(e) => eprintln!("Error: {}", e),
}
}
use app_info::get_file_icon;
fn main() {
let path = "/path/to/file";
match get_file_icon(path, 64) {
Ok(icon) => println!("Icon Size: {}x{}", icon.width, icon.height),
Err(e) => eprintln!("Error: {}", e),
}
}
The examples/save_icon.rs script demonstrates how to save icons of installed applications to a directory.
cargo run --example save_icon
This project is licensed under the MIT License. See the LICENSE file for details.