[go: up one dir, main page]

bson 0.12.3

Encoding and decoding support for BSON in Rust
Documentation
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::decode_document(&mut f) {
        println!("{:?}", decoded);
    }
}