A rusty plist parser.
Put this in your Cargo.toml
:
[dependencies]
plist = "0.1"
And put this in your crate root:
extern crate plist;
use plist::Plist;
use std::fs::File;
let file = File::open("tests/data/xml.plist").unwrap();
let plist = Plist::read(file).unwrap();
match plist {
Plist::Array(_array) => (),
_ => ()
}
#[macro_use]
extern crate serde_derive;
use plist::serde::deserialize;
use std::fs::File;
#[derive(Deserialize)]
struct Info {
name: String,
x: i32
}
let file = File::open("tests/data/xml.plist").unwrap();
let info: Info = deserialize(file).unwrap();