1 unstable release
0.3.1 | Oct 11, 2023 |
---|---|
0.3.0 |
|
0.2.0 |
|
#116 in macOS and iOS APIs
15KB
247 lines
kbparse-lib
This crate provides a lightweight ability to parse Apple user keybags (version 5). This crate has no dependencies other than std.
// Simplified example
use kbparse_lib::keybag;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let args: Vec<String> = std::env::args().collect();
let bytes = std::fs::read(&args[1])?;
let kb = keybag::Keybagv5::parse(&bytes)?;
println!("{:#?}", kb);
Ok(())
}
Platform Support
- macOS-14-aarch64 (arm64e)
- macOS-13-aarch64 (arm64e)
- macOS-13-x86_64
- macOS-12-x86_64
- macOS-12-aarch64 (arm64e)
- macOS-11-x86_64
Toolchain Support
- aarch64-apple-darwin
- x86_64-apple-darwin
lib.rs
:
This crate provides a lightweight ability to parse Apple user keybags (version 5).
// Simplified example
use kbparse_lib::keybag::Keybagv5;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let args: Vec<String> = std::env::args().collect();
let bytes = std::fs::read(&args[1])?;
let kb = Keybagv5::parse(&bytes)?;
println!("{:#?}", kb);
dbg!(&kb);
Ok(())
}