rs-car

Crates.iors-car
lib.rsrs-car
version0.4.1
sourcesrc
created_at2023-02-27 03:27:10.867343
updated_at2023-03-03 08:21:36.187695
descriptionRust implementation of the CAR v1 and v2 specifications
homepage
repositoryhttps://github.com/dapplion/rs-car
max_upload_size
id795657
size3,648,813
Lion - dapplion (dapplion)

documentation

https://docs.rs/rs-car

README

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
}
Commit count: 33

cargo fmt