diff --git a/Cargo.toml b/Cargo.toml index 23ec5490..5cb1b4ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 = [] diff --git a/systest/Cargo.toml b/systest/Cargo.toml index ec7fcbbb..c4d7a493 100644 --- a/systest/Cargo.toml +++ b/systest/Cargo.toml @@ -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"] diff --git a/systest/build.rs b/systest/build.rs index 3022b24c..11c96be4 100644 --- a/systest/build.rs +++ b/systest/build.rs @@ -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 {