Skip to content

Commit 938247b

Browse files
authored
Merge pull request #538 from Firstyear/20240806-serde-test-fixes
Fix serde test features
2 parents a5e2f5f + a698c97 commit 938247b

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

tss-esapi/tests/integration_tests/common/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ use tss_esapi::{
3434
};
3535

3636
mod marshall;
37+
#[cfg(feature = "serde")]
3738
mod serde;
3839
mod tpm2b_types_equality_checks;
3940
mod tpma_types_equality_checks;
4041
mod tpml_types_equality_checks;
4142
mod tpms_types_equality_checks;
4243
mod tpmt_types_equality_checks;
44+
#[cfg(feature = "serde")]
4345
pub use self::serde::*;
4446
pub use marshall::*;
4547
pub use tpm2b_types_equality_checks::*;

tss-esapi/tests/integration_tests/structures_tests/buffers_tests/private.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ fn marshall_unmarshall() {
1212
}
1313

1414
#[test]
15+
#[cfg(feature = "serde")]
1516
fn serialise_deserialise() {
1617
crate::common::check_serialise_deserialise(&Private::default());
1718
let private = Private::try_from([0xff; 100].to_vec()).unwrap();

tss-esapi/tests/integration_tests/structures_tests/tagged_tests/public.rs

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ fn marshall_unmarshall() {
1515
}
1616

1717
#[test]
18+
#[cfg(feature = "serde")]
1819
fn serialise_deserialise() {
1920
crate::common::publics()
2021
.iter()

0 commit comments

Comments
 (0)