bson-rs 0.0.3

Encoding and decoding support for BSON in Rust
1
2
3
4
5
6
7
8
9
10
11
extern crate bson;

use std::fs::File;

fn main() {
    let mut f = File::open("examples/test.bson").unwrap();

    while let Ok(decoded) = bson::Decoder::new(&mut f).decode_document() {
        println!("{:?}", decoded);
    }
}