rs-car-sync

Crates.iors-car-sync
lib.rsrs-car-sync
version0.5.0
created_at2024-12-14 10:46:59.132316+00
updated_at2025-09-08 13:00:04.377211+00
descriptionRust implementation of the CAR v1 and v2 specifications using standard sync api
homepage
repositoryhttps://github.com/dapplion/rs-car-sync
max_upload_size
id1483049
size3,660,000
Philippe GASSMANN (zenria)

documentation

https://docs.rs/rs-car-sync

README

rs-car-sync

This is a fork of rs-car that only uses standard sync rust api.

The main motivation is to get rid of useless contaminating async api when reading a car file from memory.

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

Usage

let mut file = std::fs::File::open(car_filepath).unwrap();
let block_iterator = decode_car_stream(&mut file, true).unwrap();

while let Some(item) = block_iterator.next() {
    let (cid, block) = item.unwrap();
    // Do something with CAR block
}
Commit count: 0

cargo fmt