Closed theRookieCoder closed 4 months ago
I think you can use .compat()
.
I think rs-async-zip want not to have dependencyship to tokio in core so I'm using compat for most case.
Can confirm, using .compat()
fixes this. But it requires the dependency tokio-util
and isn't documented anywhere at the moment.
When I use
async_zip::tokio::read::seek::ZipFileReader::reader_with_entry()
to get a reader, I don't seem to be able to use tokio'sAsyncRead
orAsyncReadExt
on it, despite using the tokio specific module. This is fine for when I only want to read (since I could use the function aliasesread_to_<end/string>_checked()
), but when I'm using something likecopy()
, havingAsyncRead
implemented is required.