@@ -53,16 +53,20 @@ pub mod tpm2_tss {
53
53
fs:: read_dir,
54
54
path:: { Path , PathBuf } ,
55
55
} ;
56
- const MINIMUM_VERSION : & str = "3.2.2 " ;
56
+ const MINIMUM_VERSION : & str = "4.0.1 " ;
57
57
const PATH_ENV_VAR_NAME : & str = "TPM2_TSS_PATH" ;
58
58
59
59
/// The installed tpm2-tss libraries that are of
60
60
/// interest.
61
61
pub struct Installation {
62
62
_tss2_sys : Library ,
63
+ #[ allow( unused) ]
63
64
tss2_esys : Library ,
65
+ #[ allow( unused) ]
64
66
tss2_tctildr : Library ,
67
+ #[ allow( unused) ]
65
68
tss2_mu : Library ,
69
+ #[ allow( unused) ]
66
70
tss2_tcti_tbs : Option < Library > ,
67
71
}
68
72
@@ -119,6 +123,7 @@ pub mod tpm2_tss {
119
123
fn bindgen_builder( & self ) -> bindgen:: Builder {
120
124
let mut builder = bindgen:: Builder :: default ( )
121
125
. size_t_is_usize( false )
126
+ . rust_target( bindgen:: RustTarget :: Stable_1_73 ) // lower or equal to MSRV.
122
127
. clang_arg( self . tss2_esys. include_dir_arg( ) )
123
128
. clang_arg( self . tss2_tctildr. include_dir_arg( ) )
124
129
. clang_arg( self . tss2_mu. include_dir_arg( ) )
@@ -261,8 +266,10 @@ pub mod tpm2_tss {
261
266
262
267
/// Struct holding the information for a library.
263
268
struct Library {
269
+ #[ allow( unused) ]
264
270
header_file : Option < PathBuf > ,
265
271
version : String ,
272
+ #[ allow( unused) ]
266
273
name : String ,
267
274
}
268
275
@@ -333,6 +340,7 @@ pub mod tpm2_tss {
333
340
/// - If the library was probe without requiring header files.
334
341
/// - If the library specifies a header file does not have a parent directory.
335
342
/// - If the library specifies a header file path that contain invalid utf-8 characters.
343
+ #[ allow( unused) ]
336
344
pub fn include_dir_arg ( & self ) -> String {
337
345
self . header_file
338
346
. as_ref ( )
@@ -356,6 +364,7 @@ pub mod tpm2_tss {
356
364
///
357
365
/// # Panics
358
366
/// - If the library specifies a header file path that contain invalid utf-8 characters.
367
+ #[ allow( unused) ]
359
368
pub fn header_file_arg ( & self ) -> & str {
360
369
self . header_file . as_ref ( ) . map_or_else (
361
370
|| {
0 commit comments