-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
Streaming zip/tar of directories #2
Comments
I might take a look at this, it's a cool feature :) |
Yeah, so the way I imagine it to work is to have a link on every page that says "Download as tar | zip" and then it would redirect to |
Using query parameters is probably better yes, when #44 is merged we'll have the struct to parse this. |
We now have downloading of archives but not streaming as originally intended. I'm going to leave this open for now. |
We really gotta find a crate that allows streaming. That's the last killer feature we lack |
Yes, definitely. Perhaps even add that to |
So, it seems it's doable with tar-rs, according to a comment on Reddit (thanks a lot to him). I could not try it yet, but here is the link of the a tool which is quite similar to miniserve, but has streaming support for folder downloads using tar-rs: https://github.com/lnicola/rusty-share I must admit I'm not very experienced with async stuff, so it's not guaranteed I understand how he did it :p (relevant comment: https://www.reddit.com/r/rust/comments/bapows/whats_everyone_working_on_this_week_152019/ekmrzhm/) cc @vojta7 (you, on the other hand, seem to understand async very well ;)) |
I can try to look into it, but I wouldn't call my understanding of async good. |
So what we need to do is have some bytes buffer shared by both a So the work to be done is:
|
Note that |
It would be cool and convenient to be able to stream directories on the host as archives on the fly if you want to offer many individual files for download.
The text was updated successfully, but these errors were encountered: