mirror of
https://github.com/italicsjenga/ash-molten.git
synced 2024-12-24 13:51:31 +11:00
2a07fd3c8a
* Squashed commits * Use a specific moltenvk commit indead * incremented version and no longer pulling * fixed version and prebuilt url * updated patch version
24 lines
597 B
Rust
24 lines
597 B
Rust
use anyhow::Error;
|
|
use std::{fs::File, io::BufReader, path::Path};
|
|
|
|
mod common;
|
|
mod library;
|
|
|
|
pub use common::*;
|
|
pub use library::*;
|
|
|
|
#[allow(non_snake_case)]
|
|
#[derive(Debug, serde::Deserialize)]
|
|
pub struct XcFramework {
|
|
pub AvailableLibraries: Vec<library::UniversalLibrary>,
|
|
pub CFBundlePackageType: String,
|
|
pub XCFrameworkFormatVersion: String,
|
|
}
|
|
|
|
impl XcFramework {
|
|
pub fn parse<P: AsRef<Path>>(path: P) -> Result<XcFramework, Error> {
|
|
let mut reader = BufReader::new(File::open(path.as_ref().join("Info.plist"))?);
|
|
Ok(plist::from_reader(&mut reader)?)
|
|
}
|
|
}
|