Open orottier opened 1 year ago
I think it is not so niche use-case, unless i am missing something i found the same need to iterate on tar entries from an axum handler.
Hey @juanfrnz the compare link above stopped working, it should be https://github.com/alexcrichton/tar-rs/compare/main...orottier:tar-rs:master
Hope it helps! I'm not working on it anymore myself so I won't put it into a separate crate myself.
For a niche use-case I found myself in need of a tar entries iterator that was
Send + 'static
.I wrote a proof of concept for
Archive::into_entries()
at https://github.com/alexcrichton/tar-rs/compare/main...orottier:tar-rs:masterDo you think it makes sense to include this work in your library, or is it better to publish it as a forked crate? It will obviously need some more work (support for extensions, user settings
set_ignore_zeros
etc).The following is now possible:
Also, because the entries mutably borrow the
SimpleEntries
object, it is impossible to consume the entries out of order.Curious to hear what you think!