1 个不稳定版本

0.3.1 2023 年 10 月 11 日
0.3.0 2023 年 10 月 11 日
0.2.0 2023 年 9 月 30 日

#89 in macOS 和 iOS API

MIT 许可协议

15KB
247 行代码(不包括注释)

kbparse-lib

此包提供了解析 Apple 用户 keybags(版本 5)的轻量级能力。此包除了 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(())
}

平台支持

  • macOS-14-aarch64 (arm64e)
  • macOS-13-aarch64 (arm64e)
  • macOS-13-x86_64
  • macOS-12-x86_64
  • macOS-12-aarch64 (arm64e)
  • macOS-11-x86_64

工具链支持

  • aarch64-apple-darwin
  • x86_64-apple-darwin

lib.rs:

此包提供了解析 Apple 用户 keybags(版本 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(())
}

无运行时依赖