Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage with tokio #68

Open
kpcyrd opened this issue Sep 11, 2024 · 1 comment
Open

Usage with tokio #68

kpcyrd opened this issue Sep 11, 2024 · 1 comment

Comments

@kpcyrd
Copy link

kpcyrd commented Sep 11, 2024

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!

@KillingSpark
Copy link
Owner

There is no async integration yet but it's definitely an interesting topic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants