File tree Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
//! Dummy crate for building HDF5 C library from source.
2
+
3
+ #[ cfg( feature = "zlib" ) ]
4
+ extern crate libz_sys;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ default = []
27
27
mpio = [" dep:mpi-sys" ]
28
28
hl = [" hdf5-src?/hl" ]
29
29
threadsafe = [" hdf5-src?/threadsafe" ]
30
- zlib = [" libz-sys" , " hdf5-src?/zlib" ]
30
+ zlib = [" dep: libz-sys" , " hdf5-src?/zlib" ]
31
31
static = [" dep:hdf5-src" ]
32
32
deprecated = [" hdf5-src?/deprecated" ]
33
33
Original file line number Diff line number Diff line change @@ -734,9 +734,6 @@ fn get_build_and_emit() {
734
734
if feature_enabled ( "ZLIB" ) {
735
735
let zlib_lib = env:: var ( "DEP_HDF5SRC_ZLIB" ) . unwrap ( ) ;
736
736
println ! ( "cargo::metadata=zlib={}" , & zlib_lib) ;
737
- let zlib_lib_header = env:: var ( "DEP_HDF5SRC_ZLIB" ) . unwrap ( ) ;
738
- println ! ( "cargo::metadata=zlib={}" , & zlib_lib_header) ;
739
- println ! ( "cargo::rustc-link-lib=static={}" , & zlib_lib) ;
740
737
}
741
738
742
739
if feature_enabled ( "HL" ) {
Original file line number Diff line number Diff line change 8
8
#![ allow( clippy:: module_name_repetitions) ]
9
9
#![ cfg_attr( docsrs, feature( doc_cfg) ) ]
10
10
11
+ #[ cfg( feature = "static" ) ]
12
+ extern crate hdf5_src;
13
+ #[ cfg( feature = "zlib" ) ]
14
+ extern crate libz_sys;
15
+ #[ cfg( feature = "mpio" ) ]
16
+ extern crate mpi_sys;
17
+
11
18
macro_rules! extern_static {
12
19
( $dest: ident, $src: ident) => {
13
20
extern "C" {
You can’t perform that action at this time.
0 commit comments