From ff1e3262641529468841c531795df0fed8b08350 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Thu, 20 Aug 2026 08:51:43 +0800 Subject: feat!: extract arg-picker into standalone repository --- dev/configs/rust-analyzer.json | 2 -- dev/run/src/bin/build.ps1 | 8 ++++++++ dev/run/src/bin/build.sh | 6 ++++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 dev/run/src/bin/build.ps1 create mode 100755 dev/run/src/bin/build.sh (limited to 'dev') diff --git a/dev/configs/rust-analyzer.json b/dev/configs/rust-analyzer.json index ab97bf7..ebc1ffe 100644 --- a/dev/configs/rust-analyzer.json +++ b/dev/configs/rust-analyzer.json @@ -6,8 +6,6 @@ ".run/Cargo.toml", "dev/ci/Cargo.toml", "mingling_pathf/test/Cargo.toml", - "arg_picker/Cargo.toml", - "arg_picker/test/Cargo.toml", "mingling_cli/Cargo.toml" ], "rust-analyzer.cargo.features": [], diff --git a/dev/run/src/bin/build.ps1 b/dev/run/src/bin/build.ps1 new file mode 100644 index 0000000..4f35ed8 --- /dev/null +++ b/dev/run/src/bin/build.ps1 @@ -0,0 +1,8 @@ +$starting_dir = Get-Location +Get-ChildItem -Recurse -Filter "Cargo.toml" | ForEach-Object { + $project_dir = $_.DirectoryName + Push-Location $project_dir + cargo build + Pop-Location +} +Set-Location $starting_dir diff --git a/dev/run/src/bin/build.sh b/dev/run/src/bin/build.sh new file mode 100755 index 0000000..2036b41 --- /dev/null +++ b/dev/run/src/bin/build.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +find . -name "Cargo.toml" -type f | while read -r cargo_file; do + project_dir=$(dirname "$cargo_file") + (cd "$project_dir" && cargo build) +done -- cgit