Skip to content

Commit d3bea90

Browse files
authored
Merge pull request #405 from Byron/fix-CI
fix CI - `--all-features` wasn't tested and didn't work with arrival of `zlib-rs`
2 parents 5048843 + 1126a4a commit d3bea90

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,14 @@ jobs:
5555
if: matrix.build == 'stable'
5656
5757
rustfmt:
58-
name: Rustfmt
58+
name: Rustfmt & Docs
5959
runs-on: ubuntu-latest
6060
steps:
6161
- uses: actions/checkout@v4
6262
- name: Install Rust
6363
run: rustup update stable && rustup default stable && rustup component add rustfmt
6464
- run: cargo fmt -- --check
65+
- run: cargo doc --all-features
6566

6667
wasm:
6768
name: WebAssembly

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "flate2"
33
authors = ["Alex Crichton <[email protected]>", "Josh Triplett <[email protected]>"]
4-
version = "1.0.29"
4+
version = "1.0.30"
55
edition = "2018"
66
license = "MIT OR Apache-2.0"
77
readme = "README.md"

src/ffi/c.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ mod c_backend {
403403
#[cfg(feature = "zlib-ng")]
404404
use libz_ng_sys as libz;
405405

406-
#[cfg(feature = "zlib-rs")]
406+
#[cfg(all(not(feature = "zlib-ng"), feature = "zlib-rs"))]
407407
use libz_rs_sys as libz;
408408

409409
#[cfg(all(not(feature = "zlib-ng"), feature = "cloudflare_zlib"))]
@@ -443,7 +443,7 @@ mod c_backend {
443443

444444
#[cfg(feature = "zlib-ng")]
445445
const ZLIB_VERSION: &'static str = "2.1.0.devel\0";
446-
#[cfg(feature = "zlib-rs")]
446+
#[cfg(all(not(feature = "zlib-ng"), feature = "zlib-rs"))]
447447
const ZLIB_VERSION: &'static str = "0.1.0\0";
448448
#[cfg(not(any(feature = "zlib-ng", feature = "zlib-rs")))]
449449
const ZLIB_VERSION: &'static str = "1.2.8\0";

0 commit comments

Comments
 (0)