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
101,935 downloads per month
Used in 13 crates
(6 directly)
1.5MB
32K
SLoC
dbn
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