From b2ef1497c7f974bea5037941994c0dd50f552059 Mon Sep 17 00:00:00 2001 From: Agustin Borgna Date: Tue, 28 May 2024 11:17:25 +0100 Subject: [PATCH] Cleanup main crate docs --- hugr/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hugr/src/lib.rs b/hugr/src/lib.rs index ce41427cf..f578d1324 100644 --- a/hugr/src/lib.rs +++ b/hugr/src/lib.rs @@ -141,7 +141,9 @@ #![cfg_attr(test, allow(non_local_definitions))] // These modules are re-exported as-is. If more control is needed, define a new module in this crate with the desired exports. +// The doc inline directive is necessary for renamed modules to appear as if they were defined in this crate. pub use hugr_core::{builder, core, extension, hugr, ops, std_extensions, types, utils}; +#[doc(inline)] pub use hugr_passes as algorithms; // Top-level re-exports for convenience. @@ -151,4 +153,5 @@ pub use hugr_core::core::{ pub use hugr_core::extension::Extension; pub use hugr_core::hugr::{Hugr, HugrView, SimpleReplacement}; +// Re-export macros. pub use hugr_core::macros::{const_extension_ids, type_row};