rs-car 0.5.0

Rust implementation of the CAR v1 and v2 specifications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# rs-car

Rust implementation of the [CAR specifications](https://ipld.io/specs/transport/car/), both [CARv1](https://ipld.io/specs/transport/car/carv1/) and [CARv2](https://ipld.io/specs/transport/car/carv2/).

## Usage

```rs
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
}
```