@@ -53,16 +53,20 @@ pub mod tpm2_tss {
5353 fs:: read_dir,
5454 path:: { Path , PathBuf } ,
5555 } ;
56- const MINIMUM_VERSION : & str = "3.2.2 " ;
56+ const MINIMUM_VERSION : & str = "4.0.1 " ;
5757 const PATH_ENV_VAR_NAME : & str = "TPM2_TSS_PATH" ;
5858
5959 /// The installed tpm2-tss libraries that are of
6060 /// interest.
6161 pub struct Installation {
6262 _tss2_sys : Library ,
63+ #[ allow( unused) ]
6364 tss2_esys : Library ,
65+ #[ allow( unused) ]
6466 tss2_tctildr : Library ,
67+ #[ allow( unused) ]
6568 tss2_mu : Library ,
69+ #[ allow( unused) ]
6670 tss2_tcti_tbs : Option < Library > ,
6771 }
6872
@@ -119,6 +123,7 @@ pub mod tpm2_tss {
119123 fn bindgen_builder( & self ) -> bindgen:: Builder {
120124 let mut builder = bindgen:: Builder :: default ( )
121125 . size_t_is_usize( false )
126+ . rust_target( bindgen:: RustTarget :: Stable_1_73 ) // lower or equal to MSRV.
122127 . clang_arg( self . tss2_esys. include_dir_arg( ) )
123128 . clang_arg( self . tss2_tctildr. include_dir_arg( ) )
124129 . clang_arg( self . tss2_mu. include_dir_arg( ) )
@@ -261,8 +266,10 @@ pub mod tpm2_tss {
261266
262267 /// Struct holding the information for a library.
263268 struct Library {
269+ #[ allow( unused) ]
264270 header_file : Option < PathBuf > ,
265271 version : String ,
272+ #[ allow( unused) ]
266273 name : String ,
267274 }
268275
@@ -333,6 +340,7 @@ pub mod tpm2_tss {
333340 /// - If the library was probe without requiring header files.
334341 /// - If the library specifies a header file does not have a parent directory.
335342 /// - If the library specifies a header file path that contain invalid utf-8 characters.
343+ #[ allow( unused) ]
336344 pub fn include_dir_arg ( & self ) -> String {
337345 self . header_file
338346 . as_ref ( )
@@ -356,6 +364,7 @@ pub mod tpm2_tss {
356364 ///
357365 /// # Panics
358366 /// - If the library specifies a header file path that contain invalid utf-8 characters.
367+ #[ allow( unused) ]
359368 pub fn header_file_arg ( & self ) -> & str {
360369 self . header_file . as_ref ( ) . map_or_else (
361370 || {
0 commit comments