#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

#46 in Encoding

Download history 1756/week @ 2018-10-28 1623/week @ 2018-11-04 1342/week @ 2018-11-11 2774/week @ 2018-11-18 1592/week @ 2018-11-25 1124/week @ 2018-12-02 1100/week @ 2018-12-09 1144/week @ 2018-12-16 885/week @ 2018-12-23 912/week @ 2018-12-30 1148/week @ 2019-01-06 1503/week @ 2019-01-13 1575/week @ 2019-01-20 1425/week @ 2019-01-27 1906/week @ 2019-02-03

6,028 downloads per month
Used in 43 crates (9 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