From 17cf59fe8220ac5befbbe8333fa0515ab532103d Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 13 Apr 2026 21:19:03 +0800 Subject: Remove comp module and add EnumTag derive macro --- mingling/src/lib.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'mingling/src/lib.rs') diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs index e2aa54a..5f45228 100644 --- a/mingling/src/lib.rs +++ b/mingling/src/lib.rs @@ -59,8 +59,6 @@ //! `Mingling` provides detailed usage examples for your reference. //! See [Examples](_mingling_examples/index.html) -#[cfg(feature = "comp")] -mod comp; mod example_docs; // Re-export Core lib @@ -105,16 +103,17 @@ pub mod macros { #[cfg(feature = "comp")] /// Used to generate suggestions pub use mingling_macros::suggest; + #[cfg(feature = "comp")] + /// Used to generate enum suggestions + pub use mingling_macros::suggest_enum; } +/// derive macro EnumTag +pub use mingling_macros::EnumTag; + /// derive macro Groupped pub use mingling_macros::Groupped; -#[cfg(feature = "comp")] -pub mod comp_tools { - pub use crate::comp::*; -} - /// Example projects for `Mingling`, for learning how to use `Mingling` pub mod _mingling_examples { pub use crate::example_docs::*; -- cgit