From 80f376afcf4efca2710527f974cf47718a4f189a Mon Sep 17 00:00:00 2001 From: Julia Silge Date: Tue, 1 Dec 2026 14:04:38 -0700 Subject: [PATCH] Remove dependencies that Cargo 1.100 reports as unused --- Cargo.lock | 5 ----- Cargo.toml | 1 - crates/ark/Cargo.toml | 4 +++- crates/harp/Cargo.toml | 2 -- crates/oak_r_process/Cargo.toml | 1 - crates/oak_semantic/Cargo.toml | 10 ++-------- 6 files changed, 5 insertions(+), 18 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 87d180afa6..2656114a74 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1795,8 +1795,6 @@ dependencies = [ "parking_lot 0.13.0", "regex", "rust-embed", - "semver", - "serde", "serde_json", "stdext", "tracing-error", @@ -2787,7 +2785,6 @@ name = "oak_r_process" version = "0.1.0" dependencies = [ "anyhow", - "log", "tempfile", ] @@ -2827,14 +2824,12 @@ dependencies = [ "log", "oak_core", "oak_index_vec", - "oak_package_metadata", "oak_semantic", "rustc-hash", "salsa", "serde", "smallvec", "stdext", - "tempfile", "url", ] diff --git a/Cargo.toml b/Cargo.toml index 61a2dc4ed4..29c5566fd4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -109,7 +109,6 @@ rustc-hash = "2.1.2" salsa = { version = "0.28.0", features = ["compact_str"] } salsa-macros = "0.28.0" scraper = "0.29.0" -semver = "1.0.28" serde = { version = "1.0.228", features = ["derive"] } serde_json = { version = "1.0.149", features = ["preserve_order"] } serde_repr = "0.1.20" diff --git a/crates/ark/Cargo.toml b/crates/ark/Cargo.toml index af6741f840..65f6fbfe31 100644 --- a/crates/ark/Cargo.toml +++ b/crates/ark/Cargo.toml @@ -86,7 +86,6 @@ tree-sitter-r.workspace = true url.workspace = true uuid.workspace = true walkdir.workspace = true -winsafe.workspace = true yaml-rust2.workspace = true [dev-dependencies] @@ -118,3 +117,6 @@ license = "TODO" [target.'cfg(unix)'.dependencies] xdg.workspace = true + +[target.'cfg(windows)'.dependencies] +winsafe.workspace = true diff --git a/crates/harp/Cargo.toml b/crates/harp/Cargo.toml index de65769030..ca7c254d16 100644 --- a/crates/harp/Cargo.toml +++ b/crates/harp/Cargo.toml @@ -24,8 +24,6 @@ once_cell.workspace = true parking_lot.workspace = true regex.workspace = true rust-embed.workspace = true -semver.workspace = true -serde.workspace = true serde_json.workspace = true stdext.workspace = true tracing-error.workspace = true diff --git a/crates/oak_r_process/Cargo.toml b/crates/oak_r_process/Cargo.toml index 6927a6bd26..e850105288 100644 --- a/crates/oak_r_process/Cargo.toml +++ b/crates/oak_r_process/Cargo.toml @@ -8,7 +8,6 @@ license.workspace = true [dependencies] anyhow.workspace = true -log.workspace = true tempfile.workspace = true [lints] diff --git a/crates/oak_semantic/Cargo.toml b/crates/oak_semantic/Cargo.toml index ff3a9fbfb7..6a828d448a 100644 --- a/crates/oak_semantic/Cargo.toml +++ b/crates/oak_semantic/Cargo.toml @@ -14,13 +14,12 @@ rust-version.workspace = true [features] salsa = ["dep:salsa"] serde = ["dep:serde"] -testing = ["dep:tempfile"] +testing = [] [lints] workspace = true [dependencies] -aether_parser.workspace = true aether_syntax.workspace = true anyhow.workspace = true biome_rowan.workspace = true @@ -29,7 +28,6 @@ itertools.workspace = true log.workspace = true oak_core.workspace = true oak_index_vec.workspace = true -oak_package_metadata.workspace = true rustc-hash.workspace = true smallvec.workspace = true stdext.workspace = true @@ -43,10 +41,6 @@ optional = true workspace = true optional = true -[dependencies.tempfile] -workspace = true -optional = true - [dev-dependencies] +aether_parser.workspace = true oak_semantic = { workspace = true, features = ["testing"] } -tempfile.workspace = true