#parser #plist

plist

A rusty plist parser. Supports Serde serialization.

27 releases

0.4.1 Feb 9, 2019
0.3.0 May 2, 2018
0.2.4 Nov 21, 2017
0.2.2 May 5, 2017
0.0.10 Nov 6, 2015

#42 in Encoding

Download history 1040/week @ 2018-12-20 730/week @ 2018-12-27 1092/week @ 2019-01-03 1393/week @ 2019-01-10 1639/week @ 2019-01-17 1504/week @ 2019-01-24 1556/week @ 2019-01-31 2121/week @ 2019-02-07 1818/week @ 2019-02-14 2099/week @ 2019-02-21 2500/week @ 2019-02-28 2550/week @ 2019-03-07 2411/week @ 2019-03-14 3326/week @ 2019-03-21 3346/week @ 2019-03-28

9,061 downloads per month
Used in 58 crates (12 directly)

MIT license

89KB
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