From 2e4e467f47e3d84f700297f2271dac86069f51b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Thu, 15 Feb 2024 18:17:49 +0100 Subject: [PATCH] Expose the ikm and scheme modules only if either encryption or ikm-management features are enabled --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 60ac941..e807e46 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,9 +1,13 @@ mod error; +#[cfg(any(feature = "encryption", feature = "ikm-management"))] mod ikm; +#[cfg(any(feature = "encryption", feature = "ikm-management"))] mod scheme; pub use error::Error; +#[cfg(any(feature = "encryption", feature = "ikm-management"))] pub use ikm::InputKeyMaterialList; +#[cfg(any(feature = "encryption", feature = "ikm-management"))] pub use scheme::Scheme; #[cfg(feature = "ikm-management")]