Skip to content

feat: Add legacy shrink/reduce/implode compression#303

Merged
Pr0methean merged 21 commits intozip-rs:masterfrom
mkrueger:legacy-zip2
Sep 10, 2025
Merged

feat: Add legacy shrink/reduce/implode compression#303
Pr0methean merged 21 commits intozip-rs:masterfrom
mkrueger:legacy-zip2

Conversation

@mkrueger
Copy link
Contributor

@mkrueger mkrueger commented Mar 4, 2025

Replaces #120

The original PR grew too large to sanely merge it - ported it manually to zip-rs HEAD and reopened the PR.

I need the legacy formats for my BBS project which I've not touched for some while but I've continued on that lately.

Copy link
Member

@Pr0methean Pr0methean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good; just some nitpicks.

@mkrueger mkrueger requested a review from Pr0methean March 17, 2025 08:51
@mkrueger
Copy link
Contributor Author

ty

@Pr0methean Pr0methean enabled auto-merge March 17, 2025 12:39
Copy link
Member

@Pr0methean Pr0methean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are failing because a new dependency requires Rust 1.79. You can increase the MSRV for zip to 1.79 to fix this, or replace the dependency if that's somehow easier.

@Pr0methean Pr0methean added the Please fix failing tests Tests are failing with this change; please fix them. label Mar 17, 2025
auto-merge was automatically disabled March 24, 2025 04:39

Head branch was pushed to by a user without write access

@mkrueger mkrueger force-pushed the legacy-zip2 branch 3 times, most recently from eaeccf6 to 09ff06b Compare March 24, 2025 04:41
@mkrueger mkrueger requested review from Pr0methean March 24, 2025 05:20
@mkrueger
Copy link
Contributor Author

Updated to bitstream-io 2.6.0 + upped rust version.

Copy link
Member

@Pr0methean Pr0methean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, but still a fair number of nitpicks.

Copy link
Member

@Pr0methean Pr0methean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my previous review; GitHub didn't think it was finished for some reason.

@mkrueger
Copy link
Contributor Author

mkrueger commented Sep 3, 2025

I really need to work more often on my bbs project but had too much work to do elsewhere the last few months :/

@mkrueger
Copy link
Contributor Author

mkrueger commented Sep 5, 2025

rebased with master, upped bitstream-io. Rust is a fast moving target :).

@mkrueger mkrueger force-pushed the legacy-zip2 branch 3 times, most recently from 7189839 to 17e647c Compare September 5, 2025 05:23
@mkrueger mkrueger requested a review from Pr0methean September 5, 2025 08:26
@mkrueger mkrueger force-pushed the legacy-zip2 branch 2 times, most recently from e0872d8 to 6e5e853 Compare September 5, 2025 08:33
@Pr0methean Pr0methean changed the title Added legacy shrink/reduce/implode compression. feat: Add legacy shrink/reduce/implode compression Sep 9, 2025
@Pr0methean
Copy link
Member

Pr0methean commented Sep 9, 2025

@mkrueger Could you please fix the test failures on Windows caused by newline styles? I've tried every way I can think of and nothing's working; and since you checked in the files with Windows-style newlines, I'm guessing you use a Windows machine for development and thus have much more experience with this kind of issue than I do -- or at least, that you can reproduce it locally.

If nothing else works, you can always change the test data so that it doesn't contain any newlines.

@Pr0methean Pr0methean added the Amazon Q development agent Generate new features or iterate code based on issue descriptions and comments. label Sep 9, 2025
@Pr0methean Pr0methean added this pull request to the merge queue Sep 10, 2025
@Pr0methean Pr0methean removed Please fix failing tests Tests are failing with this change; please fix them. Amazon Q development agent Generate new features or iterate code based on issue descriptions and comments. labels Sep 10, 2025
Merged via the queue into zip-rs:master with commit 0abee77 Sep 10, 2025
65 checks passed
@Pr0methean Pr0methean mentioned this pull request Sep 10, 2025
cosmicexplorer pushed a commit to cosmicexplorer/zip2 that referenced this pull request Sep 30, 2025
* Added legacy shrink/reduce/implode compression.

* Remove the unused 0th len_count entry

Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>

* Make legacy modules `pub(crate)` rather than `pub`

Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>

* chore(deps): Bump MSRV to 1.83.0 for bistream-io

* style: cargo fmt --all

* style: cargo clippy --fix

* chore: fix remaining Clippy warnings manually

* style: cargo fmt --all

* fix: errors introduced by fixing clippy warnings

* fix: test failures on Windows due to newline style

* fix: must define legacy compression methods unconditionally, for backward compatibility

* style: Add missing doc comments

* fix: doc comments apparently can't be before `cfg`

* fix: doc comments apparently can't be before `cfg`

* fix: Windows newline issues persisted (files not recognized as text?)

* fix: Windows newline issues persisted (need to mark some files text and others binary)

* fix?! Test a peer's suggested fix

* fix use lf instead of crlf to fix tests on windows

* Fix? make tests/data/legacy/*.out explicitly CRLF

---------

Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
Co-authored-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
Co-authored-by: hennickc <hennickc@amazon.com>
Co-authored-by: Speedy_Lex <78314533+speedy-lex@users.noreply.github.com>
@mkrueger
Copy link
Contributor Author

mkrueger commented Oct 3, 2025

yeah ! :) ty - took a long time but I need that for one of my open source projects that are really… let's say special.

An old school bbs system re creating one of the most well known systems from the 80'

https://github.com/mkrueger/icy_board/

:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants