rust-lang / flate2-rs

DEFLATE, gzip, and zlib bindings for Rust
https://docs.rs/flate2
Apache License 2.0
929 stars 163 forks source link

Error on compiling flate2 on rust 1.57.0 #370

Closed vladimirfomene closed 1 year ago

vladimirfomene commented 1 year ago
Compiling flate2 v1.0.27 error[E0658]: deriving Default on enums is experimental --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/flate2-1.0.27/src/gz/mod.rs:90:17 90 #[derive(Debug, Default)] ^^^^^^^

= note: see issue #86985 https://github.com/rust-lang/rust/issues/86985 for more information = note: this error originates in the derive macro Default (in Nightly builds, run with -Z macro-backtrace for more info)

Byron commented 1 year ago

I may refer to the MSRV policy, which allows this change.

It should be possible to pin flate2 to the most recent version that works for you until you are able to upgrade to rustc 1.62.0.

jongiddy commented 1 year ago

flate2 v1.0.28 can be compiled with older versions of Rust going back to 1.54.