47 releases (20 breaking)

new 0.23.1 Nov 12, 2024
0.22.1 Oct 8, 2024
0.20.0 Jul 30, 2024
0.16.0 Mar 1, 2024
0.4.0 Mar 29, 2023

#621 in Encoding

Download history 4246/week @ 2024-07-28 3402/week @ 2024-08-04 3444/week @ 2024-08-11 2922/week @ 2024-08-18 3409/week @ 2024-08-25 3942/week @ 2024-09-01 2536/week @ 2024-09-08 1894/week @ 2024-09-15 2986/week @ 2024-09-22 4561/week @ 2024-09-29 3304/week @ 2024-10-06 3839/week @ 2024-10-13 4418/week @ 2024-10-20 2467/week @ 2024-10-27 2454/week @ 2024-11-03 2760/week @ 2024-11-10

12,241 downloads per month
Used in 2 crates

Apache-2.0

790KB
18K SLoC

dbn

build Documentation license Current Crates.io Version

The official crate for working with Databento Binary Encoding (DBN). For more information about DBN, read our introduction to DBN.

Check out the databento crate for the official Databento Rust client.

Installation

To add the crate to an existing project, run the following command:

cargo add dbn

Usage

To read a DBN file with MBO data and print each row:

use dbn::{
    decode::dbn::Decoder,
    record::MboMsg,
};
use streaming_iterator::StreamingIterator;

let mut dbn_stream = Decoder::from_zstd_file("20201228.dbn.zst")?.decode_stream::<MboMsg>()?;
while let Some(mbo_msg) = dbn_stream.next() {
    println!("{mbo_msg:?}");
}

Documentation

See the docs for more detailed usage.

License

Distributed under the Apache 2.0 License.

Dependencies

~6–14MB
~160K SLoC