#ipfs #single-file #ipld #car #gateways #trustless #buffering #api #block #rs-car

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

#180 in Unix APIs

Download history 834/week @ 2025-03-22 835/week @ 2025-03-29 1271/week @ 2025-04-05 260/week @ 2025-04-12 301/week @ 2025-04-19 485/week @ 2025-04-26 593/week @ 2025-05-03 349/week @ 2025-05-10 336/week @ 2025-05-17 584/week @ 2025-05-24 399/week @ 2025-05-31 519/week @ 2025-06-07 493/week @ 2025-06-14 526/week @ 2025-06-21 621/week @ 2025-06-28 470/week @ 2025-07-05

2,204 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
~171K SLoC