#ipfs #car #ipld #single-file #file-read #async-api

bin+lib rs-car-ipfs

rs-car wrapper to read files from IPFS trustless gateways

4 releases (2 breaking)

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

#1007 in Filesystem

Download history 1161/week @ 2024-03-14 1303/week @ 2024-03-21 525/week @ 2024-03-28 1409/week @ 2024-04-04 1940/week @ 2024-04-11 1525/week @ 2024-04-18 491/week @ 2024-04-25 722/week @ 2024-05-02 872/week @ 2024-05-09 664/week @ 2024-05-16 483/week @ 2024-05-23 612/week @ 2024-05-30 674/week @ 2024-06-06 705/week @ 2024-06-13 850/week @ 2024-06-20 544/week @ 2024-06-27

3,023 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

lib.rs:

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

Usage

Dependencies

~5–15MB
~175K SLoC