From b9d5d8e2c442d73245b66c585afde8846c38d9c1 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 3 Aug 2026 00:39:54 +0800 Subject: feat(build): document build module and refine feature exports Add module-level docs for the build module via include_str and restrict public re-exports to explicit items instead of glob imports. --- mingling_core/src/build.rs | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'mingling_core/src/build.rs') diff --git a/mingling_core/src/build.rs b/mingling_core/src/build.rs index 7918f3a..213d529 100644 --- a/mingling_core/src/build.rs +++ b/mingling_core/src/build.rs @@ -3,11 +3,26 @@ mod comp; #[cfg(feature = "comp")] -pub use comp::*; +mod comp_re_export { + pub use super::comp::build_comp_script; + pub use super::comp::build_comp_script_to; + pub use super::comp::build_comp_script_to_file; + pub use super::comp::build_comp_scripts; +} + +#[cfg(feature = "comp")] +pub use comp_re_export::*; #[doc(hidden)] #[cfg(feature = "pathf")] mod pathf; #[cfg(feature = "pathf")] -pub use pathf::*; +mod pathf_re_export { + pub use super::pathf::analyze; + pub use super::pathf::analyze_and_build_type_mapping; + pub use super::pathf::analyze_and_build_type_mapping_for; +} + +#[cfg(feature = "pathf")] +pub use pathf_re_export::*; -- cgit