Skip to content

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

Notifications You must be signed in to change notification settings

zippiehq/rs-car-ipfs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rs-car-ipfs

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

lib usage

  • To read a single file buffering the block dag [single_file::read_single_file_buffer]
  • To read a single file without buffering the block dag [single_file::read_single_file_seek]

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 97.1%
  • Shell 2.9%