Crates.io | rs-car |
lib.rs | rs-car |
version | 0.4.1 |
source | src |
created_at | 2023-02-27 03:27:10.867343 |
updated_at | 2023-03-03 08:21:36.187695 |
description | Rust implementation of the CAR v1 and v2 specifications |
homepage | |
repository | https://github.com/dapplion/rs-car |
max_upload_size | |
id | 795657 |
size | 3,648,813 |
Rust implementation of the CAR specifications, both CARv1 and CARv2.
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
}