Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ dist-ssr
# Build outputs - Rust/Tauri
target/
**/target/
.target/
/.targets/
# Local evidence working dir (tracked .md files stay; ignore transient outputs)
target2/*
!target2/*.md
# The deployable Rust services use the workspace lockfile for reproducible
# container builds.
!Cargo.lock
Expand Down Expand Up @@ -91,5 +95,7 @@ external/
/.bitfun/search/flashgrep-index/
.agents/
/.flashgrep-index-engine/
/src/apps/desktop/.bitfun/search/flashgrep-index/
/target/debug/.bitfun/search/flashgrep-index/

.design/
9 changes: 7 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ resolver = "2"
version = "0.2.16" # x-release-please-version
authors = ["BitFun Team"]
edition = "2021"
license = "MIT"

[workspace.lints.rust]
unsafe_op_in_unsafe_fn = "warn"
Expand Down
45 changes: 42 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 12 additions & 4 deletions scripts/cargo-target-gc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,20 @@ function sleepMs(ms) {
export function isCompilerBusy({ exec = execFileSync, platform = process.platform } = {}) {
try {
if (platform === 'win32') {
const out = exec(
'cmd.exe',
['/d', '/s', '/c', 'tasklist /FI "IMAGENAME eq cargo.exe" & tasklist /FI "IMAGENAME eq rustc.exe"'],
// Pass each /FI filter as a single argument. Routing the whole command
// through cmd.exe /c re-splits the quoted filter, so tasklist receives
// `eq` as a standalone option and fails with `无效参数/选项 - 'eq'`.
const cargo = exec(
'tasklist',
['/FI', 'IMAGENAME eq cargo.exe', '/NH'],
{ encoding: 'utf8' }
);
return /\bcargo\.exe\b/i.test(out) || /\brustc\.exe\b/i.test(out);
const rustc = exec(
'tasklist',
['/FI', 'IMAGENAME eq rustc.exe', '/NH'],
{ encoding: 'utf8' }
);
return /\bcargo\.exe\b/i.test(cargo) || /\brustc\.exe\b/i.test(rustc);
}
const cargo = exec('pgrep', ['-x', 'cargo'], { encoding: 'utf8' }).trim();
if (cargo) {
Expand Down
Loading