Skip to content
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

Introduce rc-zip-sync, rc-zip-tokio #60

Merged
merged 49 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
a1cea81
Add tokio AsyncRead support
fasterthanlime Feb 1, 2024
c8d852d
Use pin-project-lite
fasterthanlime Feb 1, 2024
4754f50
Dedup RawEntryReader
fasterthanlime Feb 1, 2024
6574b98
Get started on async entry reader
fasterthanlime Feb 1, 2024
2d3d7aa
Now for the fun part
fasterthanlime Feb 1, 2024
b2fde1c
Eyy it typechecks?
fasterthanlime Feb 1, 2024
20de58a
Smol fixes
fasterthanlime Feb 1, 2024
3b776d7
It checks
fasterthanlime Feb 1, 2024
821bebe
Full async impl?
fasterthanlime Feb 1, 2024
4c5ccab
Now we need deflate
fasterthanlime Feb 1, 2024
fe0eb7f
Failing tests, fun!
fasterthanlime Feb 1, 2024
f91c604
async deflate test work, it seems
fasterthanlime Feb 1, 2024
1413e7a
Split sync/tokio into their own separate crates
fasterthanlime Feb 1, 2024
635dcd8
All tests pass
fasterthanlime Feb 1, 2024
7a82225
Can't get rid of the Buffer wrapper, because relative reads
fasterthanlime Feb 1, 2024
c6d0980
Move LZMA properties parsing into rc-zip, remove unused dependencies
fasterthanlime Feb 2, 2024
93d3518
Rename 'reader' API to state machine api
fasterthanlime Feb 2, 2024
2f22013
Clarify state machine terminology
fasterthanlime Feb 2, 2024
2c2d35a
rename format to parse
fasterthanlime Feb 2, 2024
455b5b9
Document every single exported symbol
fasterthanlime Feb 2, 2024
444a1f2
Take care of docs
fasterthanlime Feb 2, 2024
955a9e8
Simplify ArchiveFsm
fasterthanlime Feb 2, 2024
3c0f483
Fix docs
fasterthanlime Feb 2, 2024
f1160de
Add missing READMEs
fasterthanlime Feb 2, 2024
0faf473
Good WIP EntryFsm
fasterthanlime Feb 2, 2024
07de9de
Almost there..
fasterthanlime Feb 2, 2024
31fe4f3
Add Deflate state machine
fasterthanlime Feb 2, 2024
7146011
FsmEntryReader for rc-zip-sync
fasterthanlime Feb 2, 2024
b1acd92
Now let's debug deflate
fasterthanlime Feb 2, 2024
35ae25e
We're passing too much data to the decompressor
fasterthanlime Feb 2, 2024
ecfd942
More sleuthing
fasterthanlime Feb 2, 2024
a48f70e
rc-zip sync works with deflate
fasterthanlime Feb 2, 2024
53cd358
Make rc-zip-tokio use EntryFsm
fasterthanlime Feb 2, 2024
2a30e7f
Move corpus to rc-zip
fasterthanlime Feb 2, 2024
a5b9cf8
Move more tests to the core crate
fasterthanlime Feb 2, 2024
ba0d6c2
Move more code into rc-zip
fasterthanlime Feb 2, 2024
8be9ac3
failing deflate tokio test!
fasterthanlime Feb 2, 2024
4a29af8
Async tests pass
fasterthanlime Feb 2, 2024
1dc0652
Remove old methods from rc-zip-sync
fasterthanlime Feb 2, 2024
12de2ea
Re-add bzip2 support
fasterthanlime Feb 2, 2024
c9525cb
Stub LZMA
fasterthanlime Feb 2, 2024
a475815
Confused about lzma
fasterthanlime Feb 2, 2024
b433f81
Fix conditional data descriptor thingy
fasterthanlime Feb 2, 2024
35126fe
LZMA works
fasterthanlime Feb 2, 2024
6ac4b54
Explain what on cthulu's blue sea is going on with that n != 0 condition
fasterthanlime Feb 2, 2024
e43f575
Re-add zstd support
fasterthanlime Feb 2, 2024
a8b0c4f
Re-add deflate64 support
fasterthanlime Feb 2, 2024
c87711d
Fix docs
fasterthanlime Feb 2, 2024
a532d35
Fix docs
fasterthanlime Feb 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
cargo doc --all-features --no-deps
- name: Run cargo clippy
run: |
cargo hack clippy --feature-powerset --group-features deflate,deflate64,lzma,bzip2
cargo hack clippy --each-feature
- name: Run tests and collect coverage
run: just ci-test
- name: Upload coverage information
Expand Down
12 changes: 11 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"rust-analyzer.cargo.features": ["default", "lzma", "deflate64", "bzip2", "zstd"]
"rust-analyzer.cargo.features": [
"rc-zip/corpus",
"deflate",
"deflate64",
"bzip2",
"lzma",
"zstd",
],
"rust-analyzer.linkedProjects": [
"./Cargo.toml"
]
}
235 changes: 223 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading