Skip to content

pin flate2 under 1.1.5 - #6335

Merged
youknowone merged 1 commit into
RustPython:mainfrom
youknowone:flate2
Dec 7, 2025
Merged

youknowone merged 1 commit into
RustPython:mainfrom
youknowone:flate2

Conversation

@youknowone

@youknowone youknowone commented Dec 7, 2025 •

Copy link
Copy Markdown
Member

To prevent breaking change on 1.1.7 right now.

rust-lang/flate2-rs#517

Summary by CodeRabbit

  • Chores
    • Updated compression dependency version constraint for improved compatibility.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai

coderabbitai Bot commented Dec 7, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

The pull request updates the flate2 dependency version constraint in the stdlib crate's Cargo.toml from "1.1" to "<=1.1.5", while maintaining the existing feature configuration (zlib-rs backend, default-features disabled).

Changes

Cohort / File(s) Summary
Dependency version constraint
crates/stdlib/Cargo.toml
Updated flate2 compression dependency version from "1.1" to "<=1.1.5"

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

  • Single-file change affecting only a version constraint
  • No functional or control-flow modifications
  • Straightforward dependency pinning—verify the version constraint rationale and compatibility range

Poem

A rabbit hops through dependency land, 🐰
Where versions dance like grains of sand,
"One-point-one?" nay, "One-point-five,"
A tighter grip keeps wheels alive!
Flate2 compressed, compressed with care,
Precision versioning in the air! 📦

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: pinning the flate2 dependency under version 1.1.5 to address a breaking change, which aligns with the changeset that modifies flate2's version constraint.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between aea956d and d95b0cd.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • crates/stdlib/Cargo.toml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
  • GitHub Check: Run snippets and cpython tests on wasm-wasi
  • GitHub Check: Check the WASM package and demo
  • GitHub Check: Ensure compilation on various targets
  • GitHub Check: Run snippets and cpython tests (windows-latest)
  • GitHub Check: Run snippets and cpython tests (macos-latest)
  • GitHub Check: Run snippets and cpython tests (ubuntu-latest)
  • GitHub Check: Run tests under miri
  • GitHub Check: Run rust tests (macos-latest)
  • GitHub Check: Run rust tests (windows-latest)
  • GitHub Check: Run rust tests (ubuntu-latest)
  • GitHub Check: Check Rust code with clippy
🔇 Additional comments (1)
crates/stdlib/Cargo.toml (1)

86-86: Version constraint is appropriate to avoid breaking change.

Version 1.1.7 introduces a breaking change by making zlib-rs a direct dependency and removing libz-rs-sys. The pin to <=1.1.5 correctly prevents this incompatible upgrade.

Note that this constraint will prevent receiving future bug fixes or security patches released after 1.1.5 for the 1.1.x series. Consider monitoring the upstream flate2 repository for resolution or workarounds to this breaking change, as a future upgrade path may become necessary.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@youknowone
youknowone marked this pull request as ready for review December 7, 2025 01:55
@youknowone
youknowone merged commit 590da47 into RustPython:main Dec 7, 2025
@youknowone
youknowone deleted the flate2 branch December 7, 2025 03:10
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.

1 participant