| Crates.io | apple-utils |
| lib.rs | apple-utils |
| version | 0.1.0 |
| created_at | 2025-04-03 11:16:14.336592+00 |
| updated_at | 2025-04-03 11:16:14.336592+00 |
| description | Utilities for interacting with Apple platforms |
| homepage | |
| repository | https://github.com/maun/apple-utils |
| max_upload_size | |
| id | 1618006 |
| size | 35,040 |
A Rust library providing safe wrappers around Apple platform features using objc2 bindings.
FilePickerFileTypeuse apple_utils::file_type::FileType;
use apple_utils::ios::FilePicker;
async fn pick_images() -> Vec<std::path::PathBuf> {
let picker = FilePicker {
filters: vec![FileType::UniformTypeIdentifier("public.image".to_string())],
multiple_selection: true,
..Default::default()
};
picker.open().await
}
The underlying objc2 bindings are unsafe. While this crate aims to provide safe wrappers, these wrappers have not been rigorously tested.
apple-utils is distributed under the terms of both the MIT license and the Apache License (Version 2.0). See LICENSE-APACHE and LICENSE-MIT for details. Opening a pull request is assumed to signal agreement with these licensing terms.