#parser #plist

plist

A rusty plist parser. Supports Serde serialization.

28 releases

0.4.2 Jun 11, 2019
0.4.1 Feb 9, 2019
0.4.0 Jan 8, 2019
0.3.0 May 2, 2018
0.0.10 Nov 6, 2015

#59 in Encoding

Download history 2542/week @ 2019-02-26 2605/week @ 2019-03-05 2274/week @ 2019-03-12 2844/week @ 2019-03-19 3369/week @ 2019-03-26 3953/week @ 2019-04-02 4287/week @ 2019-04-09 3054/week @ 2019-04-16 2931/week @ 2019-04-23 3035/week @ 2019-04-30 3692/week @ 2019-05-07 4058/week @ 2019-05-14 3504/week @ 2019-05-21 4153/week @ 2019-05-28 3769/week @ 2019-06-04

14,928 downloads per month
Used in 65 crates (14 directly)

MIT license

90KB
2.5K SLoC

Plist

A rusty plist parser.

Build Status

Documentation


lib.rs:

Plist

A rusty plist parser.

Usage

Put this in your Cargo.toml:

[dependencies]
plist = "0.4"

And put this in your crate root:

extern crate plist;

Examples

use plist::Value;

let value = Value::from_file("tests/data/xml.plist").unwrap();

match value {
    Value::Array(_array) => (),
    _ => ()
}
extern crate plist;
# #[cfg(feature = "serde")]
#[macro_use]
extern crate serde_derive;

# #[cfg(feature = "serde")]
# fn main() {
#[derive(Deserialize)]
#[serde(rename_all = "PascalCase")]
struct Info {
    author: String,
    height: f32,
}

let info: Info = plist::from_file("tests/data/xml.plist").unwrap();
# }
#
# #[cfg(not(feature = "serde"))]
# fn main() {}

Dependencies

~1MB
~16K SLoC