Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove unused dependencies #19429

Merged
merged 1 commit into from
Mar 23, 2025
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 1 addition & 34 deletions Cargo.lock

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

3 changes: 0 additions & 3 deletions crates/base-db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ rust-version.workspace = true
[lib]

[dependencies]
lz4_flex = { version = "0.11", default-features = false }

la-arena.workspace = true
dashmap.workspace = true
salsa.workspace = true
Expand All @@ -25,7 +23,6 @@ tracing.workspace = true

# local deps
cfg.workspace = true
stdx.workspace = true
syntax.workspace = true
vfs.workspace = true
span.workspace = true
Expand Down
3 changes: 0 additions & 3 deletions crates/hir-def/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ rust-version.workspace = true
arrayvec.workspace = true
bitflags.workspace = true
cov-mark = "2.0.0-pre.1"
dashmap.workspace = true
drop_bomb = "0.1.5"
either.workspace = true
fst = { version = "0.4.7", default-features = false }
Expand All @@ -25,14 +24,12 @@ la-arena.workspace = true
rustc-hash.workspace = true
tracing.workspace = true
smallvec.workspace = true
hashbrown.workspace = true
triomphe.workspace = true
rustc_apfloat = "0.2.0"
text-size.workspace = true
salsa.workspace = true
query-group.workspace = true

ra-ap-rustc_hashes.workspace = true
ra-ap-rustc_parse_format.workspace = true
ra-ap-rustc_abi.workspace = true

Expand Down
2 changes: 0 additions & 2 deletions crates/hir-expand/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ cov-mark = "2.0.0-pre.1"
tracing.workspace = true
either.workspace = true
rustc-hash.workspace = true
la-arena.workspace = true
itertools.workspace = true
hashbrown.workspace = true
smallvec.workspace = true
triomphe.workspace = true
query-group.workspace = true
Expand Down
2 changes: 0 additions & 2 deletions crates/hir-ty/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ chalk-recursive.workspace = true
chalk-derive.workspace = true
la-arena.workspace = true
triomphe.workspace = true
nohash-hasher.workspace = true
typed-arena = "2.0.1"
dashmap.workspace = true
indexmap.workspace = true
rustc_apfloat = "0.2.0"
query-group.workspace = true
Expand Down
1 change: 0 additions & 1 deletion crates/ide-db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ rust-version.workspace = true
cov-mark = "2.0.0-pre.1"
crossbeam-channel.workspace = true
tracing.workspace = true
dashmap.workspace = true
rayon.workspace = true
fst = { version = "0.4.7", default-features = false }
rustc-hash.workspace = true
Expand Down
4 changes: 1 addition & 3 deletions crates/ide-ssr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,16 @@ rust-version.workspace = true
[dependencies]
cov-mark = "2.0.0-pre.1"
itertools.workspace = true
triomphe.workspace = true
nohash-hasher.workspace = true

# local deps
hir.workspace = true
ide-db.workspace = true
parser.workspace = true
stdx.workspace = true
syntax.workspace = true

[dev-dependencies]
expect-test = "1.4.0"
triomphe.workspace = true

# local deps
test-utils.workspace = true
Expand Down
1 change: 0 additions & 1 deletion crates/load-cargo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ tracing.workspace = true

hir-expand.workspace = true
ide-db.workspace = true
paths.workspace = true
proc-macro-api.workspace = true
project-model.workspace = true
span.workspace = true
Expand Down
5 changes: 2 additions & 3 deletions crates/mbe/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ rust-version.workspace = true
cov-mark = "2.0.0-pre.1"
rustc-hash.workspace = true
smallvec.workspace = true
tracing.workspace = true
arrayvec.workspace = true
ra-ap-rustc_lexer.workspace = true

# local deps
syntax.workspace = true
parser.workspace = true
tt.workspace = true
stdx.workspace = true
Expand All @@ -31,9 +29,10 @@ syntax-bridge.workspace = true
[dev-dependencies]
test-utils.workspace = true
expect-test.workspace = true
syntax.workspace = true

[features]
in-rust-tree = ["parser/in-rust-tree", "tt/in-rust-tree", "syntax/in-rust-tree"]
in-rust-tree = ["parser/in-rust-tree", "tt/in-rust-tree"]

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/proc-macro-srv-cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! A standalone binary for `proc-macro-srv`.
//! Driver for proc macro server
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
#![cfg_attr(not(feature = "sysroot-abi"), allow(unused_crate_dependencies))]
#![allow(clippy::print_stderr)]

#[cfg(feature = "in-rust-tree")]
Expand Down
5 changes: 3 additions & 2 deletions crates/proc-macro-srv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ rust-version.workspace = true

[dependencies]
object.workspace = true
libc.workspace = true
libloading.workspace = true
memmap2.workspace = true

stdx.workspace = true
tt.workspace = true
syntax-bridge.workspace = true
paths.workspace = true
Expand All @@ -27,6 +25,9 @@ intern.workspace = true

ra-ap-rustc_lexer.workspace = true

[target.'cfg(unix)'.dependencies]
libc.workspace = true

[dev-dependencies]
expect-test.workspace = true

Expand Down
1 change: 1 addition & 0 deletions crates/proc-macro-srv/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
//! rustc rather than `unstable`. (Although in general ABI compatibility is still an issue)…

#![cfg(any(feature = "sysroot-abi", rust_analyzer))]
#![cfg_attr(not(feature = "sysroot-abi"), allow(unused_crate_dependencies))]
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
#![feature(proc_macro_internals, proc_macro_diagnostic, proc_macro_span)]
#![allow(unreachable_pub, internal_features, clippy::disallowed_types, clippy::print_stderr)]
Expand Down
4 changes: 3 additions & 1 deletion crates/profile/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ rust-version.workspace = true

[dependencies]
cfg-if = "1.0.0"
libc.workspace = true
jemalloc-ctl = { version = "0.5.0", package = "tikv-jemalloc-ctl", optional = true }

[target.'cfg(all(target_os = "linux", not(target_env = "ohos")))'.dependencies]
perf-event = "=0.4.7"

[target.'cfg(all(target_os = "linux", target_env = "gnu"))'.dependencies]
libc.workspace = true

[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.59", features = [
"Win32_System_Threading",
Expand Down
3 changes: 1 addition & 2 deletions crates/query-group-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ rust-version.workspace = true
proc-macro = true

[dependencies]
heck = "0.5.0"
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "2.0", features = ["full", "extra-traits"] }
salsa.workspace = true

[dev-dependencies]
expect-test = "1.5.0"
salsa.workspace = true
3 changes: 0 additions & 3 deletions crates/rust-analyzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ tracing-tree.workspace = true
triomphe.workspace = true
toml = "0.8.8"
nohash-hasher.workspace = true
always-assert = "0.2.0"
walkdir = "2.3.2"
semver.workspace = true
memchr = "2.7.1"
Expand Down Expand Up @@ -95,9 +94,7 @@ syntax-bridge.workspace = true
[features]
jemalloc = ["jemallocator", "profile/jemalloc"]
force-always-assert = ["stdx/force-always-assert"]
sysroot-abi = []
in-rust-tree = [
"sysroot-abi",
"syntax/in-rust-tree",
"parser/in-rust-tree",
"hir/in-rust-tree",
Expand Down
Loading
Loading