@@ -21,15 +21,20 @@ fn path_handling(env: &str) -> String {
2121 }
2222 index += 1 ;
2323 }
24+
25+ if path_lib. len ( ) == 0 {
26+ panic ! ( "No paths found for {:?}" , env) ;
27+ }
28+
2429 if index > 1 {
2530 panic ! ( "Multiple paths found for {:?}" , path_lib) ;
2631 }
32+
2733 path_lib[ 0 ] . clone ( )
2834}
2935
3036fn main ( ) {
3137 let path_lib_azuresdk = path_handling ( "LIB_PATH_AZURESDK" ) ;
32- let path_lib_eisutils = path_handling ( "LIB_PATH_EISUTILS" ) ;
3338 let path_lib_uuid = path_handling ( "LIB_PATH_UUID" ) ;
3439 let path_lib_openssl = path_handling ( "LIB_PATH_OPENSSL" ) ;
3540 let path_lib_curl = path_handling ( "LIB_PATH_CURL" ) ;
@@ -39,10 +44,6 @@ fn main() {
3944 "cargo:rustc-link-search=native={}/lib" ,
4045 path_lib_azuresdk. to_string( )
4146 ) ;
42- println ! (
43- "cargo:rustc-link-search=native={}/lib" ,
44- path_lib_eisutils. to_string( )
45- ) ;
4647 println ! (
4748 "cargo:rustc-link-search=native={}/lib" ,
4849 path_lib_uuid. to_string( )
@@ -56,7 +57,7 @@ fn main() {
5657 path_lib_curl. to_string( )
5758 ) ;
5859
59- // Tell cargo to tell rustc to link the azure iot-sdk and eis_utils libraries.
60+ // Tell cargo to tell rustc to link the azure iot-sdk libraries.
6061 println ! ( "cargo:rustc-link-lib=iothub_client_mqtt_transport" ) ;
6162 println ! ( "cargo:rustc-link-lib=iothub_client" ) ;
6263 println ! ( "cargo:rustc-link-lib=parson" ) ;
@@ -67,7 +68,6 @@ fn main() {
6768 println ! ( "cargo:rustc-link-lib=ssl" ) ;
6869 println ! ( "cargo:rustc-link-lib=crypto" ) ;
6970 println ! ( "cargo:rustc-link-lib=uuid" ) ;
70- println ! ( "cargo:rustc-link-lib=eis_utils" ) ;
7171
7272 // Tell cargo to invalidate the built crate whenever the wrapper changes
7373 println ! ( "cargo:rerun-if-changed=wrapper.h" ) ;
@@ -85,8 +85,6 @@ fn main() {
8585 "-I{}/include/azureiot" ,
8686 path_lib_azuresdk. to_string( )
8787 ) )
88- . clang_arg ( format ! ( "-I{}/include" , path_lib_eisutils. to_string( ) ) )
89- . clang_arg ( format ! ( "-I{}/include/aduc" , path_lib_eisutils. to_string( ) ) )
9088 // seems it is a controverse topic, but for 32bit vs 64 bit systems we
9189 // need size_t to be usize to be able to bind callbacks
9290 // https://github.com/rust-lang/rust-bindgen/issues/1901 vs
0 commit comments