diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-03 00:39:54 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-03 00:39:54 +0800 |
| commit | b9d5d8e2c442d73245b66c585afde8846c38d9c1 (patch) | |
| tree | 1b11da7fabcb16b24272c30ee7aa781c25933ef7 /mingling_core/src/build.rs | |
| parent | 3668b49c0d3423f1d5d10bb6b4a0e0e7b61f2046 (diff) | |
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.
Diffstat (limited to 'mingling_core/src/build.rs')
| -rw-r--r-- | mingling_core/src/build.rs | 19 |
1 files changed, 17 insertions, 2 deletions
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::*; |
