FB2 for Rust

This library is a set of models that enable quick-xml to deserialize an FB2 file in a structure way. The library almost conforms to the standard XSD schema with a few exceptions:

Example

```rust use fb2::FictionBook; use std::fs::File; use std::io::BufReader;

fn main() { let file = File::open("examples/books/churchilltrial.fb2").unwrap(); let reader = BufReader::new(file); let book: FictionBook = quickxml::de::from_reader(reader).unwrap(); println!("{:#?}", book); } ```

Try with: shell cargo run --example parse_sample

How to deserialize windows-1251 (or other encoding)

Enable the encoding feature of quick-xml:

toml quick-xml = { version = "<version>", features = ["encoding", "serialize"] }

Then, deserialize as usual.