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/lib.rs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'mingling_core/src/lib.rs') diff --git a/mingling_core/src/lib.rs b/mingling_core/src/lib.rs index b1bfe08..cd42842 100644 --- a/mingling_core/src/lib.rs +++ b/mingling_core/src/lib.rs @@ -42,21 +42,8 @@ pub mod core_res { #[cfg(feature = "comp")] pub(crate) mod comp; -/// Provides Mingling's build script module, used in `build.rs` to provide build-time behavior for certain features. -/// -/// To use it, add the following to your `Cargo.toml` under `[build-dependencies]`, and enable the features -/// that require build-time behavior from the crate: -/// -/// ```toml -/// [build-dependencies.mingling] -/// version = "0.3.0" -/// features = [ -/// "build", // Enable it -/// "comp", // If you need completion-related build-time behavior, enable this as well -/// ] -/// ``` #[cfg(feature = "build")] -#[doc(hidden)] +#[doc = include_str!("docs/build.md")] pub mod build; // Public Modules -- cgit