aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mingling/src/lib.rs3
-rw-r--r--mingling_picker/Cargo.toml5
-rw-r--r--mingling_picker/src/corebind.rs1
-rw-r--r--mingling_picker/src/lib.rs6
4 files changed, 14 insertions, 1 deletions
diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs
index ba87f85..9b13408 100644
--- a/mingling/src/lib.rs
+++ b/mingling/src/lib.rs
@@ -91,6 +91,9 @@ pub mod picker {
pub mod parselib {
pub use mingling_picker::parselib::*;
}
+
+ #[cfg(feature = "core")]
+ pub use mingling_picker::corebind::*;
}
/// Re-export of all macros from `mingling_macros`.
diff --git a/mingling_picker/Cargo.toml b/mingling_picker/Cargo.toml
index aae4d54..a585a39 100644
--- a/mingling_picker/Cargo.toml
+++ b/mingling_picker/Cargo.toml
@@ -8,6 +8,9 @@ authors = ["Weicao-CatilGrass"]
readme = "README.md"
description = "Mingling's lightweight argument parser"
+[features]
+core = ["dep:mingling_core"]
+
[dependencies]
-mingling_core.workspace = true
+mingling_core = { workspace = true, optional = true }
mingling_picker_macros.workspace = true
diff --git a/mingling_picker/src/corebind.rs b/mingling_picker/src/corebind.rs
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/mingling_picker/src/corebind.rs
@@ -0,0 +1 @@
+
diff --git a/mingling_picker/src/lib.rs b/mingling_picker/src/lib.rs
index 4056283..d3d3fdd 100644
--- a/mingling_picker/src/lib.rs
+++ b/mingling_picker/src/lib.rs
@@ -19,3 +19,9 @@ pub mod prelude {
pub mod macros {
pub use mingling_picker_macros::*;
}
+
+#[cfg(feature = "core")]
+mod corebind;
+
+#[cfg(feature = "core")]
+pub use corebind::*;