aboutsummaryrefslogtreecommitdiff
path: root/mling
diff options
context:
space:
mode:
authorWeicao-CatilGrass <1992414357@qq.com>2026-05-11 19:56:10 +0800
committerWeicao-CatilGrass <1992414357@qq.com>2026-05-11 19:56:10 +0800
commite42567b25093907cfd939edc92ace94a5d59b398 (patch)
treef2514fdd18277b5620b0fd6512cfc95569cfce15 /mling
parent99d5a62aa3655f8676021a9bf70af3d12c9457bc (diff)
Add `builds` feature and install completion scripts
Diffstat (limited to 'mling')
-rw-r--r--mling/Cargo.lock1
-rw-r--r--mling/Cargo.toml1
-rw-r--r--mling/src/project_installer.rs8
3 files changed, 4 insertions, 6 deletions
diff --git a/mling/Cargo.lock b/mling/Cargo.lock
index fbcd4a7..073b69b 100644
--- a/mling/Cargo.lock
+++ b/mling/Cargo.lock
@@ -149,6 +149,7 @@ dependencies = [
name = "mingling_core"
version = "0.1.8"
dependencies = [
+ "dirs",
"just_fmt",
"just_template",
"once_cell",
diff --git a/mling/Cargo.toml b/mling/Cargo.toml
index bbee212..c2985f7 100644
--- a/mling/Cargo.toml
+++ b/mling/Cargo.toml
@@ -24,6 +24,7 @@ strip = true
[dependencies]
mingling = { path = "../mingling", features = [
+ "builds",
"parser",
"comp",
"general_renderer",
diff --git a/mling/src/project_installer.rs b/mling/src/project_installer.rs
index 5c21462..2e9ca8d 100644
--- a/mling/src/project_installer.rs
+++ b/mling/src/project_installer.rs
@@ -44,9 +44,7 @@ pub fn install_this_project(
.current_dir(workspace_root)
.status()?;
if !status.success() {
- return Err(std::io::Error::other(
- "exec `cargo clean` failed",
- ));
+ return Err(std::io::Error::other("exec `cargo clean` failed"));
}
}
@@ -56,9 +54,7 @@ pub fn install_this_project(
.current_dir(workspace_root)
.status()?;
if !status.success() {
- return Err(std::io::Error::other(
- "cargo build --release failed",
- ));
+ return Err(std::io::Error::other("cargo build --release failed"));
}
// Parse package.name from workspace_root's Cargo.toml as namespace