Reopen of #65 because I messed up and closed that one.
I'm still unsure about the API. I don't really want to expose BackendWithGlobalOptions publicly, but
I originally had a with_global_options on Backend (and IpfsApi), but then you could call that twice and you'd get the global options set twice. Kinda meh.
I could add the with_global_options on the IpfsClients, but since they're in a different crate, I still have to expose BackendWithGlobalOptions as pub. The recommended interface gets nicer, the actual interface doesn't change.
I also don't have a plan for what to do with things like ipfs files--flush.
Reopen of #65 because I messed up and closed that one.
I'm still unsure about the API. I don't really want to expose
BackendWithGlobalOptions
publicly, butwith_global_options
onBackend
(andIpfsApi
), but then you could call that twice and you'd get the global options set twice. Kinda meh.with_global_options
on theIpfsClient
s, but since they're in a different crate, I still have to exposeBackendWithGlobalOptions
aspub
. The recommended interface gets nicer, the actual interface doesn't change.I also don't have a plan for what to do with things like
ipfs files
--flush
.