Skip to content

Commit

Permalink
Use ctest2 instead of the original to fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Aug 21, 2020
1 parent 038e3f2 commit a3e8da7
Show file tree
Hide file tree
Showing 3 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 @@ -58,5 +58,5 @@ stock-zlib = []
# Deprecated: the assembly routines are outdated, and either reduce performance
# or cause segfaults.
asm = []
# Enable this feature if you want to have a staticly linked libz
# Enable this feature if you want to have a statically linked libz
static = []
2 changes: 1 addition & 1 deletion systest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ libz-sys = { path = "..", default-features = false, features = ["libc"] }
libc = "0.2"

[build-dependencies]
ctest = "0.1"
ctest2 = "0.3"

[features]
libz-static = ["libz-sys/static"]
Expand Down
6 changes: 3 additions & 3 deletions systest/build.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
extern crate ctest;
extern crate ctest2;

use std::env;

fn main() {
let mut cfg = ctest::TestGenerator::new();
let mut cfg = ctest2::TestGenerator::new();
cfg.header("zlib.h");
if let Some(s) = env::var_os("DEP_Z_INCLUDE") {
cfg.include(s);
}
cfg.type_name(|n, _| {
cfg.type_name(|n, _, _| {
if n == "internal_state" {
format!("struct {}", n)
} else {
Expand Down

0 comments on commit a3e8da7

Please sign in to comment.