Skip to content

Commit

Permalink
Allow using Cloudflare Zlib fork
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTMjugador committed Mar 13, 2021
1 parent 3aba49f commit bad5929
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion spng-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ license = "MIT OR Apache-2.0"
description = "Native bindings to libspng"

[dependencies]
libz-sys = { version = "1.1.0", default-features = false, features = ["libc"] }
libz-sys = { version = "1.1.2", optional = true, default-features = false, features = ["libc"] }
cloudflare-zlib-sys = { version = "0.2.0", optional = true }
libc = "0.2"

[build-dependencies]
cc = "1.0"

[features]
default = ["libz-sys"]
6 changes: 5 additions & 1 deletion spng/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ description = "Rust bindings to libspng"
readme = "../README.md"

[dependencies]
spng-sys = { version = "0.1.0-alpha", path = "../spng-sys" }
spng-sys = { version = "0.1.0-alpha", path = "../spng-sys", default-features = false }
bitflags = "1.0"
libc = "0.2"

[features]
default = ["spng-sys/libz-sys"]
cloudflare_zlib = ["spng-sys/cloudflare-zlib-sys"]

0 comments on commit bad5929

Please sign in to comment.