-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add unsquashfs
utility to lib
#354
Comments
Surely. I already have |
I wanted to try my hand at this, what would you prefer:
|
I haven't thought much about where the code would be, or what the API would be. But I expect the duplication to be the most between this package and |
The API would mostly have the |
This is mostly a copy from `backhand-cli`'s `unsquashfs`, but with all the args/progress handling removed and more thorough error handling. Due to the dependency on `rayon`, the utility is currently gated behind the `util` feature of `backhand`. I tried also gating the `nix` dependency on the feature, but it was hard due to it showing up in `BackhandError`. Fixes: wcampbell0x2a#354
This is mostly a copy from `backhand-cli`'s `unsquashfs`, but with all the args/progress handling removed and more thorough error handling. Due to the dependency on `rayon`, the utility is currently gated behind the `util` feature of `backhand`. I tried also gating the `nix` dependency on the feature, but it was hard due to it showing up in `BackhandError`. Fixes: wcampbell0x2a#354
Currently, if you want to replace a
std::process::Command::new("unsquashfs")
call withbackhand
, you need to replicate a large portion of the code inbackhand-cli
'sunsquashfs
bin.It would be nice if the functionality of extracting a squashfs into a dir was provided by the library.
The text was updated successfully, but these errors were encountered: