ash-molten/build/xcframework/mod.rs
Viktor Zoutman 2a07fd3c8a
Release 0.8.2+1.1.2#f28ab1c (#47)
* Squashed commits

* Use a specific moltenvk commit indead

* incremented version and no longer pulling

* fixed version and prebuilt  url

* updated patch version
2021-03-05 16:47:52 +00:00

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)?)
}
}