97 releases (62 breaking)

new 0.65.0 Aug 4, 2026
0.64.0 Jul 28, 2026
0.63.0 Jul 14, 2026
0.52.1 Mar 31, 2026
0.4.0 Mar 29, 2023

#219 in Encoding

Download history 10953/week @ 2026-04-19 12776/week @ 2026-04-26 12552/week @ 2026-05-03 36829/week @ 2026-05-10 38338/week @ 2026-05-17 31578/week @ 2026-05-24 33389/week @ 2026-05-31 25771/week @ 2026-06-07 28579/week @ 2026-06-14 28528/week @ 2026-06-21 23272/week @ 2026-06-28 21277/week @ 2026-07-05 24106/week @ 2026-07-12 24854/week @ 2026-07-19 26449/week @ 2026-07-26 24053/week @ 2026-08-02

101,935 downloads per month
Used in 13 crates (6 directly)

Apache-2.0

1.5MB
32K 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

~8–11MB
~211K SLoC