From 512683107ab2d6f38d91b4d66a234dbb9b94b044 Mon Sep 17 00:00:00 2001 From: moana Date: Wed, 20 Dec 2023 16:10:18 +0100 Subject: [PATCH] Hide all modules except prelude Resolves #782 --- CHANGELOG.md | 2 ++ src/lib.rs | 18 +++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 776f0dde..7e9b3932 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Improve InvalidCircuitSize error [#792] +- Hide all modules except 'prelude' [#782] ## [0.18.0] - 2023-12-13 @@ -545,6 +546,7 @@ is necessary since `rkyv/validation` was required as a bound. [#796]: https://github.com/dusk-network/plonk/issues/796 [#792]: https://github.com/dusk-network/plonk/issues/792 [#784]: https://github.com/dusk-network/plonk/issues/784 +[#782]: https://github.com/dusk-network/plonk/issues/782 [#773]: https://github.com/dusk-network/plonk/issues/773 [#774]: https://github.com/dusk-network/plonk/issues/774 [#763]: https://github.com/dusk-network/plonk/issues/763 diff --git a/src/lib.rs b/src/lib.rs index 043f5807..30db01b8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -63,24 +63,22 @@ if #[cfg(feature = "alloc")] { extern crate alloc; mod bit_iterator; + mod constraint_system; + mod composer; mod permutation; + mod runtime; mod util; mod transcript; - pub mod constraint_system; - pub mod composer; - pub mod runtime; }); -mod fft; - #[cfg(feature = "debug")] pub(crate) mod debugger; -pub mod commitment_scheme; -pub mod error; -pub mod prelude; -pub mod proof_system; +mod commitment_scheme; +mod error; +mod fft; +mod proof_system; #[doc = include_str!("../docs/notes-intro.md")] pub mod notes { @@ -93,3 +91,5 @@ pub mod notes { #[doc = include_str!("../docs/notes-KZG10.md")] pub mod kzg10_docs {} } + +pub mod prelude;