Skip to content

Remove dependencies that Cargo 1.100 reports as unused - #1497

Merged
juliasilge merged 1 commit into
mainfrom
cleanup-unused-dependencies
Dec 1, 2026
Merged

juliasilge merged 1 commit into
mainfrom
cleanup-unused-dependencies

Conversation

@juliasilge

Copy link
Copy Markdown
Member

The dependabot PR #1490 moved the toolchain to Rust 1.100. Cargo 1.100 adds the unused_dependencies lint, which is on by default. Since then, every cargo build shows warnings for dependencies that no code uses. This PR removes those dependencies, so the build log should be clean again.

Changes

  • ark: move winsafe to [target.'cfg(windows)'.dependencies]. Only the code in crates/ark/src/sys/windows/ uses it, so on macOS and Linux the lint reported it as unused.
  • harp: remove semver and serde. The crate uses only serde_json.
  • oak_r_process: remove log.
  • oak_semantic:
    • Remove oak_package_metadata.
    • Remove tempfile, both the optional dependency and the dev-dependency. The testing feature stays, because ark, oak_db, and oak_ide use it. It no longer enables tempfile.
    • Move aether_parser to [dev-dependencies], because only the integration tests use it.
  • Workspace: remove semver from the root Cargo.toml. No crate uses it now.

The first fixes exposed a second set of warnings (aether_parser, tempfile, and the workspace semver entry). This PR fixes both sets.

Testing

  • cargo build and cargo clippy --workspace --all-targets --all-features -- -D warnings show no warnings on macOS.
  • The tests for harp, oak_db, oak_r_process, and oak_semantic pass.
  • scripts/check-only-workspace-dependencies.py passes.
  • I did not build on Windows locally, and the Windows CI jobs will confirm the winsafe change.

@juliasilge
juliasilge marked this pull request as ready for review December 1, 2026 21:07
@juliasilge
juliasilge merged commit e10e071 into main Dec 1, 2026
19 checks passed
@juliasilge
juliasilge deleted the cleanup-unused-dependencies branch December 1, 2026 21:30
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant