oras-project / rust-oci-client

A Rust crate to interact with OCI registries
Apache License 2.0
90 stars 47 forks source link

Swap out `AsyncRead`/`AsyncWrite` for `Stream` #58

Closed thomastaylor312 closed 1 year ago

thomastaylor312 commented 1 year ago

Both pull_blob and async_pull_blob should probably be taking and returning impl Stream rather than read or write. That should allow more flexibility for people to consume the stream how they wish.

Also, now that I am reading this again, I think that we should rename async_pull_blob to pull_blob_stream