#ipfs #car #ipld

bin+lib rs-car-ipfs

rs-car wrapper to read files from IPFS trustless gateways

5 releases (3 breaking)

0.4.0 Mar 18, 2025
0.3.0 Mar 3, 2023
0.2.0 Mar 2, 2023
0.1.1 Feb 28, 2023
0.1.0 Feb 27, 2023

#798 in Network programming

Download history 844/week @ 2024-12-14 140/week @ 2024-12-21 109/week @ 2024-12-28 837/week @ 2025-01-04 454/week @ 2025-01-11 724/week @ 2025-01-18 282/week @ 2025-01-25 1269/week @ 2025-02-01 1625/week @ 2025-02-08 809/week @ 2025-02-15 779/week @ 2025-02-22 971/week @ 2025-03-01 815/week @ 2025-03-08 1084/week @ 2025-03-15 834/week @ 2025-03-22 496/week @ 2025-03-29

3,476 downloads per month
Used in forest-filecoin

MIT/Apache

2.5MB
824 lines

rs-car-ipfs

Wrapper for rs-car to read files from IPFS trustless gateways with an async API

lib usage

bin usage

cargo install rs-car-ipfs --features bin

car-ipfs reads a CAR stream from stdin and outputs the file contents to stdout

curl "http://localhost:8080/ipfs/QmV3q6mo8oxf2GBuvR7zx7ABFBNP5VrRs3sCr63HQ7kEFC?format=car" | car-ipfs

On an Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz bin car-ipfs achieves 75,0MiB/s of throughput.

Roadmap

  • Read CAR for single file buffering all blocks in memory
  • Read CAR for single file without buffering blocks in memory
  • Read CAR for multiple files and directories and write to disk

Dependencies

~4–14MB
~179K SLoC