From 69250e8f99c16c70ffe04fccf3192eb648f6e4f5 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 28 Jun 2026 04:10:24 +0800 Subject: feat(workspace): add mingling_pathf crate and pathf feature --- mingling/Cargo.toml | 5 +++-- mingling/src/features.rs | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'mingling') diff --git a/mingling/Cargo.toml b/mingling/Cargo.toml index 0f2b37b..be223fe 100644 --- a/mingling/Cargo.toml +++ b/mingling/Cargo.toml @@ -44,6 +44,7 @@ dispatch_tree = ["mingling_core/dispatch_tree", "mingling_macros/dispatch_tree"] repl = ["mingling_core/repl", "mingling_macros/repl"] comp = ["mingling_core/comp", "mingling_macros/comp"] parser = ["dep:size"] +pathf = ["mingling_core/pathf", "mingling_macros/pathf"] structural_renderer = [ "mingling_core/structural_renderer", @@ -80,7 +81,7 @@ ron_serde_fmt = ["mingling_core/ron_serde_fmt"] extra_macros = ["mingling_macros/extra_macros"] [dependencies] -mingling_core = { path = "../mingling_core", default-features = false } -mingling_macros = { path = "../mingling_macros", default-features = false } +mingling_core.workspace = true +mingling_macros.workspace = true serde = { workspace = true, optional = true } size = { version = "0.5", optional = true } diff --git a/mingling/src/features.rs b/mingling/src/features.rs index 8f147fb..4d0c50b 100644 --- a/mingling/src/features.rs +++ b/mingling/src/features.rs @@ -130,6 +130,17 @@ pub const MINGLING_PARSER: bool = false; #[cfg(feature = "parser")] #[allow(unused)] pub const MINGLING_PARSER: bool = true; +/// Whether the `pathf` feature is enabled +/// Current: `disabled` +#[cfg(not(feature = "pathf"))] +#[allow(unused)] +pub const MINGLING_PATHF: bool = false; + +/// Whether the `pathf` feature is enabled +/// Current: `enabled` +#[cfg(feature = "pathf")] +#[allow(unused)] +pub const MINGLING_PATHF: bool = true; /// Whether the `repl` feature is enabled /// Current: `disabled` #[cfg(not(feature = "repl"))] -- cgit