Skip to content

Remove unused tempfile and libc dependencies#11

Merged
shaoweihu merged 1 commit into
Pyiner:mainfrom
Binlogo:chore/fix-ci
May 27, 2026
Merged

Remove unused tempfile and libc dependencies#11
shaoweihu merged 1 commit into
Pyiner:mainfrom
Binlogo:chore/fix-ci

Conversation

@Binlogo
Copy link
Copy Markdown
Collaborator

@Binlogo Binlogo commented May 27, 2026

What

Fixes the failing Rust static analysis — Detect unused dependencies CI job (cargo machete --with-metadata), which flagged two unused dependencies:

  • garyx-agent-loop: tempfile (dev-dependency)
  • garyx-bridge: libc

Verification

Confirmed both are genuinely unused, not false positives:

  • tempfile (garyx-agent-loop): No references to tempfile/TempDir/tempdir/NamedTempFile in any source or test file. The actual tempfile::tempdir() usages live in garyx-bridge (correctly not flagged).
  • libc (garyx-bridge): No libc token anywhere in the crate. The #[cfg(unix)] blocks use std (std::os::unix::fs::PermissionsExt), not libc. No build.rs exists.
  • cargo check --all-features --all-targets passes for both crates, covering all feature-gated and test code paths.

@shaoweihu shaoweihu merged commit 3749d71 into Pyiner:main May 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants