48 releases (21 breaking)

new 0.24.0 Dec 10, 2024
0.23.1 Nov 12, 2024
0.23.0 Oct 22, 2024
0.20.0 Jul 30, 2024
0.4.0 Mar 29, 2023

#448 in Encoding

Download history 2857/week @ 2024-08-20 3255/week @ 2024-08-27 4076/week @ 2024-09-03 2402/week @ 2024-09-10 1952/week @ 2024-09-17 3003/week @ 2024-09-24 4570/week @ 2024-10-01 3737/week @ 2024-10-08 3896/week @ 2024-10-15 4197/week @ 2024-10-22 2151/week @ 2024-10-29 2470/week @ 2024-11-05 2823/week @ 2024-11-12 2487/week @ 2024-11-19 2284/week @ 2024-11-26 2413/week @ 2024-12-03

10,371 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
~161K SLoC