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
10,371 downloads per month
Used in 2 crates
790KB
18K
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
~6–14MB
~161K SLoC