dapplion / rs-car

Rust implementation of the CAR specifications, both CARv1 and CARv2
https://crates.io/crates/rs-car
MIT License
4 stars 3 forks source link

rs-car

Rust implementation of the CAR specifications, both CARv1 and CARv2.

Usage

let mut file = async_std::fs::File::open(car_filepath).await.unwrap();
let block_stream = decode_car_async_stream(&mut file, true).await.unwrap();

while let Some(item) = block_stream.next().await {
    let (cid, block) = item.unwrap();
    // Do something with CAR block
}