Ticket #4609 (testing enhancement: fixed)
treat Rust crates as tar.gz files for opening/viewing
Reported by: | sharkcz | Owned by: | zaytsev |
---|---|---|---|
Priority: | minor | Milestone: | 4.8.33 |
Component: | mc-core | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | merged | Votes for changeset: | committed-master |
Description
Seem the Rust crates (*.crate) files are actually a gzipped tarball. It would be nice to be able to open/view/inspect them similarly to regular gzipped tarballs.
Change History
comment:1 Changed 12 days ago by zaytsev
- Status changed from new to accepted
- Owner set to zaytsev
- Priority changed from major to minor
- Branch state changed from no branch to on review
- Milestone changed from Future Releases to 4.8.33
comment:2 Changed 12 days ago by sharkcz
Right, it would be ideal if MC could detect the compression before passing the data to eg. tar. Which might be a useful feature in general ...
comment:3 Changed 12 days ago by zaytsev
Well, generally we do have it, but the problem is with nested compression like tar.gz. For this we don't have a great solution. Let's hope that my suggestion is good enough.
comment:4 Changed 12 days ago by andrew_b
- Votes for changeset set to andrew_b
- Component changed from mc-vfs to mc-core
- Branch state changed from on review to approved
Note: See
TracTickets for help on using
tickets.
We can add it, but it will be annoying if they change compression, because it's formally unspecified:
https://users.rust-lang.org/t/where-to-learn-about-crate-file-format/11496/7
https://github.com/rust-lang/cargo/blob/534ce68621ce4feec0b7e8627cfd3b077d4f3900/src/cargo/ops/cargo_package.rs#L185
Branch: 4609_rust_crate
Changeset: 63a51cdcd72c035b8a6e10107cfd3ce54c545d1a