#ipfs #ipfs-api #function #mfs

ipfs-mfs

A slightly more ergonomic wrapper for ipfs-api's mfs-related functions

4 releases (2 breaking)

0.3.0 Jul 26, 2021
0.2.1 Sep 22, 2020
0.2.0 Aug 3, 2020
0.1.0 Jul 2, 2020

#8 in #ipfs-api

28 downloads per month
Used in ftp2mfs

MIT license

13KB
328 lines

A somewhat more convenient interface to IPFS's files API.


lib.rs:

Small wrapper crate for ipfs_api. Mostly exists because I do not want any part of the failure crate to appear in my code.

Quick example:

let mfs = Mfs::new("http://127.0.0.1:5001").unwrap();
mfs.put(Path::new("/demo"), futures::io::Cursor::new("Hello ipfs files")).await.ok();

The relevant functions are exposted through the main Mfs struct.

Dependencies

~9–19MB
~252K SLoC