Skip to content

Commit

Permalink
chore: build the flate2 crate as optimized in the dev profile
Browse files Browse the repository at this point in the history
flate2 1.0.28 built unoptimized is significantly slower than before
an unsafe unsoundness was fixed. This unnecessarily slows down some
of our tests which use `flate2` during test setup.

For more info please check rust-lang/flate2-rs#395

This change makes sure that `flate2` is optimized even for a `dev` build.
  • Loading branch information
kkovaacs authored and CHr15F0x committed Mar 5, 2024
1 parent 020a1b7 commit a348fd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ inherits = "release"
codegen-units = 1
lto = true

[profile.dev.package.flate2]
opt-level = 3

[workspace.package]
version = "0.11.0"
edition = "2021"
Expand Down

0 comments on commit a348fd3

Please sign in to comment.