Skip to content

Switch from libflate to flate2#361

Open
mkrasnitski wants to merge 1 commit intojonhoo:mainfrom
mkrasnitski:flate2
Open

Switch from libflate to flate2#361
mkrasnitski wants to merge 1 commit intojonhoo:mainfrom
mkrasnitski:flate2

Conversation

@mkrasnitski
Copy link
Copy Markdown

The flate2 crate is more popular and as far as I can tell, inferno makes no attempt to be no_std. The GzDecoder::new constructor is infallible because libflate attempts to read and validate the gzip header on construction, whereas flate2 does not and waits until the decoder is actually used to perform validation. Additionally, flate2 uses a BufReader internally, though GzDecoder only exposes a Read interface.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.22%. Comparing base (51423f4) to head (ea02b40).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #361   +/-   ##
=======================================
  Coverage   91.22%   91.22%           
=======================================
  Files          21       21           
  Lines        4272     4272           
=======================================
  Hits         3897     3897           
  Misses        375      375           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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