diff options
| author | Edward Barnard | 2015-12-24 19:39:07 +0000 |
|---|---|---|
| committer | Edward Barnard | 2015-12-24 22:22:31 +0000 |
| commit | 8868a6880b67fce7c7147526b2973ba59376d93a (patch) | |
| tree | 054a80244ccdc78406d7b35afe3eed31a85c26e0 /src/lib.rs | |
| parent | 816ca9ed5db5b42c19dd9e53e3af903e8efec00b (diff) | |
| download | rust-plist-8868a6880b67fce7c7147526b2973ba59376d93a.tar.bz2 | |
Implement serde serialization
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -38,11 +38,18 @@ extern crate byteorder; extern crate chrono; extern crate rustc_serialize; +extern crate serde; extern crate xml as xml_rs; pub mod binary; pub mod xml; + mod builder; +mod de; +mod ser; + +pub use de::Deserializer; +pub use ser::Serializer; use chrono::{DateTime, UTC}; use chrono::format::ParseError as ChronoParseError; @@ -241,3 +248,7 @@ impl<R: Read + Seek> Iterator for EventReader<R> { self.next() } } + +pub trait EventWriter { + fn write(&mut self, event: &PlistEvent) -> Result<(), ()>; +} |
