Skip to content

Commit

Permalink
Merge pull request #405 from Byron/fix-CI
Browse files Browse the repository at this point in the history
fix CI - `--all-features` wasn't tested and didn't work with arrival of `zlib-rs`
  • Loading branch information
Byron authored Apr 29, 2024
2 parents 5048843 + 1126a4a commit d3bea90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,14 @@ jobs:
if: matrix.build == 'stable'
rustfmt:
name: Rustfmt
name: Rustfmt & Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable && rustup default stable && rustup component add rustfmt
- run: cargo fmt -- --check
- run: cargo doc --all-features

wasm:
name: WebAssembly
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "flate2"
authors = ["Alex Crichton <[email protected]>", "Josh Triplett <[email protected]>"]
version = "1.0.29"
version = "1.0.30"
edition = "2018"
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions src/ffi/c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ mod c_backend {
#[cfg(feature = "zlib-ng")]
use libz_ng_sys as libz;

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

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

#[cfg(feature = "zlib-ng")]
const ZLIB_VERSION: &'static str = "2.1.0.devel\0";
#[cfg(feature = "zlib-rs")]
#[cfg(all(not(feature = "zlib-ng"), feature = "zlib-rs"))]
const ZLIB_VERSION: &'static str = "0.1.0\0";
#[cfg(not(any(feature = "zlib-ng", feature = "zlib-rs")))]
const ZLIB_VERSION: &'static str = "1.2.8\0";
Expand Down

0 comments on commit d3bea90

Please sign in to comment.