Repository navigation
Remove dependencies that Cargo 1.100 reports as unused - #1497
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The dependabot PR #1490 moved the toolchain to Rust 1.100. Cargo 1.100 adds the
unused_dependencieslint, which is on by default. Since then, everycargo buildshows warnings for dependencies that no code uses. This PR removes those dependencies, so the build log should be clean again.Changes
ark: movewinsafeto[target.'cfg(windows)'.dependencies]. Only the code incrates/ark/src/sys/windows/uses it, so on macOS and Linux the lint reported it as unused.harp: removesemverandserde. The crate uses onlyserde_json.oak_r_process: removelog.oak_semantic:oak_package_metadata.tempfile, both the optional dependency and the dev-dependency. Thetestingfeature stays, becauseark,oak_db, andoak_ideuse it. It no longer enablestempfile.aether_parserto[dev-dependencies], because only the integration tests use it.semverfrom the rootCargo.toml. No crate uses it now.The first fixes exposed a second set of warnings (
aether_parser,tempfile, and the workspacesemverentry). This PR fixes both sets.Testing
cargo buildandcargo clippy --workspace --all-targets --all-features -- -D warningsshow no warnings on macOS.harp,oak_db,oak_r_process, andoak_semanticpass.scripts/check-only-workspace-dependencies.pypasses.winsafechange.