ferristseng / rust-ipfs-api

IPFS HTTP client in Rust
Apache License 2.0
247 stars 68 forks source link

How can I add/get a raw buffer to/from IPFS? #15

Closed VictorTaelin closed 5 years ago

ferristseng commented 6 years ago

There's a good example in the read me about how to do this. You'll probably want to take a look at these two methods:

drozdziak1 commented 5 years ago

@ferristseng Why does add require a 'static lifetime? I've been trying to add a freshly-built non-static buffer to IPFS for at least an hour now.

drozdziak1 commented 5 years ago

Nevermind, looks like I completely misunderstood how all this is meant to be used, Cursor<Vec> worked like a charm!