Comments (4)
Yes. Here's where the unit tests check the entries' contents:
from rc-zip.
Okay it does, there is entry.reader()
for SyncZipEntry.
from rc-zip.
Yeah but for the general Archive
it seems to not have one? So if one uses the ArchiveReader directly, there seems to be no way to get to the payload?
from rc-zip.
Yeah but for the general
Archive
it seems to not have one? So if one uses the ArchiveReader directly, there seems to be no way to get to the payload?
rc-zip follows the "sans-io" approach so you can bring your own I/O (sync, async, etc.)
It also ships with a sync I/O implementation, you can look at the jean
sample to get a sense of how to use it:
As I'm going over the rustdocs, they seem misleading - they do point you to ArchiveReader
, but really what you probably want is to just use the ReadZip
trait: https://docs.rs/rc-zip/2.0.1/rc_zip/reader/sync/trait.ReadZip.html
from rc-zip.
Related Issues (20)
- feat: support deflate64 compression method HOT 1
- feat: Support LZMA compression
- Use cargo-hack to test feature powerset
- Move to flate2 crate HOT 1
- Move away from circular
- feat: Support bzip2 method
- feat: Add unsafe sync reader based on local entries
- feat: Re-add async interface
- chore: Look into winnow
- bug: NTFS timestamps are parsed wrong
- feat: Add zstd support HOT 1
- Implement BufRead for LimitedReader HOT 1
- Remove EOFNormalizer
- feat: In ReadZipWithSize & async variants, re-use cursor if it still has the right offset?
- Support for extracting Apple's "endless" zip streams HOT 1
- feat: More efficient `AsyncRandomAccessFileCursor` implementation HOT 1
- bug: Short reads makes rc-zip-tokio give up early
- Run tests with `--release` and `OneByteReadWrapper` in CI HOT 3
- Migrate from `futures` to `futures_util`
- Improve code coverage reports
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rc-zip.