| Crates.io | rs-car-sync |
| lib.rs | rs-car-sync |
| version | 0.5.0 |
| created_at | 2024-12-14 10:46:59.132316+00 |
| updated_at | 2025-09-08 13:00:04.377211+00 |
| description | Rust implementation of the CAR v1 and v2 specifications using standard sync api |
| homepage | |
| repository | https://github.com/dapplion/rs-car-sync |
| max_upload_size | |
| id | 1483049 |
| size | 3,660,000 |
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.
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
}