Skip to content

Commit

Permalink
Update cloudflare-zlib (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski authored Apr 15, 2021
1 parent 90d9e5e commit f9e26de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ libc = "0.2.65"
cfg-if = "1.0.0"
miniz-sys = { path = "miniz-sys", version = "0.1.11", optional = true }
libz-sys = { version = "1.1.0", optional = true, default-features = false }
cloudflare-zlib-sys = { version = "0.2.0", optional = true }
cloudflare-zlib-sys = { version = "0.3.0", optional = true }
tokio-io = { version = "0.1.11", optional = true }
futures = { version = "0.1.25", optional = true }
miniz_oxide = { version = "0.4.0", optional = true, default-features = false }
Expand Down
8 changes: 4 additions & 4 deletions src/ffi/c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ impl Default for StreamWrapper {
reserved: 0,
opaque: ptr::null_mut(),
state: ptr::null_mut(),
#[cfg(feature = "any_zlib")]
#[cfg(all(feature = "any_zlib", not(feature = "cloudflare-zlib-sys")))]
zalloc,
#[cfg(feature = "any_zlib")]
#[cfg(all(feature = "any_zlib", not(feature = "cloudflare-zlib-sys")))]
zfree,
#[cfg(not(feature = "any_zlib"))]
#[cfg(not(all(feature = "any_zlib", not(feature = "cloudflare-zlib-sys"))))]
zalloc: Some(zalloc),
#[cfg(not(feature = "any_zlib"))]
#[cfg(not(all(feature = "any_zlib", not(feature = "cloudflare-zlib-sys"))))]
zfree: Some(zfree),
}),
}
Expand Down

0 comments on commit f9e26de

Please sign in to comment.