Expose the ikm and scheme modules only if either encryption or ikm-management features are enabled

This commit is contained in:
Rodolphe Bréard 2024-02-15 18:17:49 +01:00
parent 60b91ffbe9
commit 2e4e467f47

View file

@ -1,9 +1,13 @@
mod error; mod error;
#[cfg(any(feature = "encryption", feature = "ikm-management"))]
mod ikm; mod ikm;
#[cfg(any(feature = "encryption", feature = "ikm-management"))]
mod scheme; mod scheme;
pub use error::Error; pub use error::Error;
#[cfg(any(feature = "encryption", feature = "ikm-management"))]
pub use ikm::InputKeyMaterialList; pub use ikm::InputKeyMaterialList;
#[cfg(any(feature = "encryption", feature = "ikm-management"))]
pub use scheme::Scheme; pub use scheme::Scheme;
#[cfg(feature = "ikm-management")] #[cfg(feature = "ikm-management")]