I'm trying to use tokio-tar and actix-web to generate a tarball and stream it to a client, however, because they use different i/o traits, I don't know how to hook them together. Actix needs to read
Stream and tokio_tar's tar builder requires an
AsyncWrite. Is there some way to create some kind of pipe/channel that's a Stream on one end and AsyncWrite on the other? Or maybe convert Sink to AsyncWrite somehow?
The basic idea would be to create a mpsc channel and then AsyncWrite to it somehow, unfortunately
tokio-util seems to provide adaptors/converters for for AsyncWrite to Sink, but no way to go the other direction so I'm totally stumped on how to continue.