Skip to content

Commit c7500dd

Browse files
authored
Rollup merge of #94220 - GuillaumeGomez:miniz-oxide-decl, r=Amanieu
Correctly handle miniz_oxide extern crate declaration Fixes #94219. Follow-up of #94122. The `miniz_oxide` dependency is optional and therefore should allow be "imported" when it makes sense. r? `@ivmarkov`
2 parents d74e05e + 173db08 commit c7500dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

std/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ extern crate unwind;
366366

367367
#[doc(masked)]
368368
#[allow(unused_extern_crates)]
369+
#[cfg(feature = "miniz_oxide")]
369370
extern crate miniz_oxide;
370371

371372
// During testing, this crate is not actually the "real" std library, but rather

0 commit comments

Comments
 (0)