Skip to content

Usage with tokio #68

@kpcyrd

Description

@kpcyrd

hello!

I was wondering, are there any plans for a tokio integration? This would allow passing an AsyncRead object to StreamingDecoder (or an equivalent) and then being able to .await decompressed data.

I think I had a need for that earlier but didn't open an issue back then. :)

The async_compression crate has implemented something like this on top of the zstd/zstd-safe crates, maybe that could be of use:

https://docs.rs/async-compression/0.4.12/async_compression/tokio/bufread/struct.ZstdDecoder.html

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions