From 21d7ca92642b14f06d08e8633ead42c22c5386eb Mon Sep 17 00:00:00 2001 From: benr-ml Date: Wed, 11 Oct 2023 14:27:49 +0300 Subject: [PATCH] fix --- fastcrypto-tbls/src/lib.rs | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/fastcrypto-tbls/src/lib.rs b/fastcrypto-tbls/src/lib.rs index 6f7f81c5c2..1608679ef8 100644 --- a/fastcrypto-tbls/src/lib.rs +++ b/fastcrypto-tbls/src/lib.rs @@ -11,23 +11,20 @@ //! A crate that implements threshold BLS (tBLS) and distributed key generation (DKG) //! protocols. -// This is a hack for not repeating the conditional compilation for each module. -#[path = ""] -mod tbls_modules { - pub mod dkg; - pub mod dl_verification; - pub mod ecies; - pub mod mocked_dkg; - pub mod nidkg; - pub mod nizk; - pub mod nodes; - pub mod polynomial; - pub mod random_oracle; - pub mod tbls; - pub mod types; -} - -pub use tbls_modules::*; +pub mod dkg; +pub mod dl_verification; +pub mod ecies; +pub mod nizk; +pub mod nodes; +pub mod polynomial; +pub mod random_oracle; +pub mod tbls; +pub mod types; + +#[cfg(any(test, feature = "experimental"))] +pub mod mocked_dkg; +#[cfg(any(test, feature = "experimental"))] +pub mod nidkg; #[cfg(test)] #[path = "tests/tbls_tests.rs"]