#ipld #car #ipfs

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

#1188 in Network programming

Download history 932/week @ 2024-12-14 203/week @ 2024-12-21 149/week @ 2024-12-28 926/week @ 2025-01-04 599/week @ 2025-01-11 874/week @ 2025-01-18 386/week @ 2025-01-25 1341/week @ 2025-02-01 1713/week @ 2025-02-08 889/week @ 2025-02-15 900/week @ 2025-02-22 1043/week @ 2025-03-01 1087/week @ 2025-03-08 1254/week @ 2025-03-15 941/week @ 2025-03-22 526/week @ 2025-03-29

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

MIT/Apache

1.5MB
764 lines

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