#car #ipld #ipfs #specification #car-read-all

rs-car

Rust implementation of the CAR v1 and v2 specifications

6 releases (breaking)

0.5.0 Mar 12, 2025
0.4.1 Mar 3, 2023
0.3.0 Mar 2, 2023
0.2.0 Feb 28, 2023
0.1.0 Feb 27, 2023

#790 in Network programming

Download history 579/week @ 2025-01-12 901/week @ 2025-01-19 382/week @ 2025-01-26 1333/week @ 2025-02-02 1761/week @ 2025-02-09 845/week @ 2025-02-16 910/week @ 2025-02-23 1030/week @ 2025-03-02 1083/week @ 2025-03-09 1262/week @ 2025-03-16 926/week @ 2025-03-23 901/week @ 2025-03-30 1406/week @ 2025-04-06 379/week @ 2025-04-13 412/week @ 2025-04-20 561/week @ 2025-04-27

2,781 downloads per month
Used in 4 crates (3 directly)

MIT/Apache

1.5MB
764 lines

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

Usage

  • To get a block streamer [CarReader::new()]
  • To read all blocks in memory [car_read_all]

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
}

Dependencies

~2.6–3.5MB
~76K SLoC