Closed ikrivosheev closed 1 year ago
Thanks! I'm open to updating the API, especially if it means improving performance. I'm having a little trouble following this change at a glance, but it seems like the high-level idea is that the items that FolderEntries
iterates over are themselves readable, instead of only containing metadata? Am I understanding correctly?
Would it be possible to still support Cabinet::get_file_entry
and/or Cabinet::read_file
as high-level convenience methods, even if that's no longer the only (or most efficient) way of reading files? Just in the interest of minimizing breaking changes.
Also, since there's a lot going on here, I think the changes will be easier to review if you're able break them up into multiple smaller PRs (for example, the one you already sent to update actions-rs
, maybe another for updating the edition and/or clap
version, etc.)
@mdsteele thank you for the review. I have created PR:
After I will continue splitting this PR.
Hello, thank you for the great library! The PR improves and makes API more ergonomic and fix problem with performance. Structure is:
Cabinet
->FolderEntries
->FolderReader
->FileEntries
->FileReader
.Changes
actions-rs
todtolnay/rust-toolchain
becauseactions-rs
is deprecatedFolderReader
for iterate overFileReader
FileReader
for reader file fromcab
Breaking changes
Cabinet::get_file_entry
Cabinet::read_file
If the idea is ok I can finish it.