diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-28 04:10:24 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-28 04:10:24 +0800 |
| commit | 69250e8f99c16c70ffe04fccf3192eb648f6e4f5 (patch) | |
| tree | 8036e94d63c1beeacb1eaae176aa987a877dcb56 /mingling | |
| parent | caf2ec52437e16c42ebc1d826607c814ed7a889e (diff) | |
feat(workspace): add mingling_pathf crate and pathf feature
Diffstat (limited to 'mingling')
| -rw-r--r-- | mingling/Cargo.toml | 5 | ||||
| -rw-r--r-- | mingling/src/features.rs | 11 |
2 files changed, 14 insertions, 2 deletions
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"))] |
