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

Subtree update of rust-analyzer #119542

Merged
merged 150 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
b21d68c
feat: add proc-macro rebuild on save option
ClSlaid Dec 4, 2023
ad27b6e
patch: only rerun build scripts when saved.
ClSlaid Dec 8, 2023
7089eb8
Make callable fields not complete in method access no parens case
dfireBird Dec 8, 2023
f556c79
fix: Correct references from `rust-analyzer.cargo.check` to `rust-ana…
davidbarsky Dec 8, 2023
63d2f35
fix: fix 'introduce_named_generic' for impl inside types
roife Dec 9, 2023
99b30ba
Don't trim trailing whitespace from doc comments
riverbl Dec 10, 2023
1e1761e
Migrate `extract_variable` to mutable ast
DropDemBits Nov 8, 2023
3162699
Migrate `generate_function` to mutable ast
DropDemBits Nov 10, 2023
c486637
Migrate `replace_is_method_with_if_let_method` to mutable ast
DropDemBits Nov 12, 2023
1506435
Update `various_resolve_strategies` test
DropDemBits Dec 11, 2023
6adb21a
Update rust-analyzer to support new `injected_env_var` function
GuillaumeGomez Dec 11, 2023
7251b86
VSCode rust-panic problem matcher
LuisFerLCC Dec 12, 2023
0542723
Formatting
LuisFerLCC Dec 12, 2023
59aa791
fix: rewrite code_action `generate_delegate_trait`
roife Dec 13, 2023
5070534
fix: testcases in `generate_delegate_trait`
roife Dec 13, 2023
3449222
fix: self type replacement in inline-function
roife Dec 13, 2023
38b5dcb
fix: self type replacement with macros
roife Dec 13, 2023
b986d8a
Complete exported macros in `#[macro_use($0)]`
unexge Dec 16, 2023
0e49024
Add missing docs string
unexge Dec 16, 2023
3b8801c
Go to definition for macros in `#[macro_use(...)]`
unexge Dec 16, 2023
cac74d9
Auto merge of #118830 - GuillaumeGomez:env-tracked_env, r=Nilstrieb
bors Dec 17, 2023
b67b352
Make functions in impl have a container name
jimmyhmiller Dec 17, 2023
e37cf75
Merge commit '21b06c1beb9bb59369ffd652f5d617bcf6952e05' into sync-fro…
lnicola Dec 18, 2023
3562030
internal: Move proc-macro knowledge out of base-db
Veykril Dec 18, 2023
e628f17
Merge branch 'master' into sync-from-rust
lnicola Dec 18, 2023
9a82f8c
Auto merge of #16144 - lnicola:sync-from-rust, r=lnicola
bors Dec 18, 2023
cfc959d
Auto merge of #16143 - Veykril:base-db-no-proc-macros, r=lnicola
bors Dec 18, 2023
66e29be
internal: Split out a span crate
Veykril Dec 18, 2023
ec61623
Move the SpanMap definition into the span crate
Veykril Dec 18, 2023
0380869
Auto merge of #16145 - Veykril:span-crate, r=Veykril
bors Dec 18, 2023
66fa1c9
Don't auto-publish sourcegen
lnicola Dec 18, 2023
bd03f92
Auto merge of #16147 - lnicola:no-ap-sourcegen, r=lnicola
bors Dec 18, 2023
60281a6
Don't fail changelog generation on missing PRs
lnicola Nov 30, 2022
5daf090
Auto merge of #16149 - lnicola:ignore-missing-prs, r=lnicola
bors Dec 18, 2023
f49a2fe
internal: Move out `WithFixture` into dev-dep only crate
Veykril Dec 18, 2023
ae2c322
Auto merge of #16150 - Veykril:text-fixture, r=Veykril
bors Dec 18, 2023
bd61888
fix: resolve alias before resolve variant
Austaras Dec 18, 2023
f663521
Auto merge of #16152 - Austaras:alias, r=Veykril
bors Dec 18, 2023
fec0e04
Add minimal support for the 2024 edition
lnicola Dec 18, 2023
0ed815f
Auto merge of #16151 - lnicola:minimal-2024-edition, r=davidbarsky
bors Dec 18, 2023
5318e89
fix: Dont assume ascii in remove_markdown
Waqar144 Dec 18, 2023
117a28a
fix(mbe): desugar doc correctly for mbe
saiintbrisson Dec 19, 2023
6f58e98
fix(mbe): update test
saiintbrisson Dec 19, 2023
9f4d269
minor: use a single push_str instead of 2 push
Waqar144 Dec 19, 2023
13177e3
minor: Use reserve when removing markdown from text
Waqar144 Dec 19, 2023
f1d09c9
Auto merge of #16159 - Waqar144:work/simplify, r=Veykril
bors Dec 19, 2023
484525f
Auto merge of #16158 - saiintbrisson:fix/mbe/desugar-comment-to-raw-s…
bors Dec 19, 2023
1c4c220
Auto merge of #16160 - Waqar144:work/use-reserve, r=Veykril
bors Dec 19, 2023
dbd0b03
Auto merge of #16155 - Waqar144:work/fix-16142, r=lnicola
bors Dec 19, 2023
f587b54
perf: Run async task in concurrent
sanjaiyan-dev Dec 19, 2023
002e611
fix: Deduplicate annotations
Veykril Dec 19, 2023
7204ee1
Auto merge of #16163 - Veykril:goto-impl-fix, r=Veykril
bors Dec 19, 2023
f178a8b
Bump test-electron
lnicola Dec 19, 2023
37b0019
Auto merge of #16164 - lnicola:bump-test-electron, r=lnicola
bors Dec 19, 2023
831d0e0
Auto merge of #16162 - sanjaiyan-dev:sanjaiyan-async-concurrent, r=ln…
bors Dec 19, 2023
8753ca5
fix: Update metavariable expression implementation
Veykril Dec 19, 2023
f48ecb6
Try to support pre and post-change metavars
Veykril Dec 19, 2023
7bdf48c
Auto merge of #16165 - Veykril:meta-vars, r=Veykril
bors Dec 20, 2023
bc2dee7
feat: auto remove unnecessary braces after remove unused imports
Young-Flash Dec 20, 2023
4cd939a
chore: add test case for nested use tree
Young-Flash Dec 20, 2023
4ec8123
Remove usages of Span::DUMMY
Veykril Dec 20, 2023
2c6ce48
Remove Delimier::dummy_invisible
Veykril Dec 20, 2023
7b80455
Remove Delimiter::DUMMY_INVISIBLE
Veykril Dec 20, 2023
f211a40
Remove SyntaxContext trait
Veykril Dec 20, 2023
65ed198
Auto merge of #16066 - Young-Flash:auto_remove_brace, r=lnicola
bors Dec 20, 2023
337e2ab
Auto merge of #16167 - Veykril:dummy-spans, r=Veykril
bors Dec 20, 2023
071fe4e
Move Intern and Lookup traits to hir-expand
Veykril Dec 20, 2023
51a9e78
Rename some things and turn macro to macro def into a query
Veykril Dec 21, 2023
7d762d1
Record macro def site spans
Veykril Dec 21, 2023
1e1113c
Correctly set and mark the proc-macro spans
Veykril Dec 21, 2023
9ee71b4
Auto merge of #16175 - Veykril:dummy-spans, r=Veykril
bors Dec 21, 2023
5bdb479
fix: Fix span marking for builtin fn macros
Veykril Dec 21, 2023
3ce3593
Auto merge of #16178 - Veykril:builtin-fn-callsite, r=Veykril
bors Dec 21, 2023
a892237
Add rust-analyzer-span server feature equivalent to the ID server
Veykril Dec 11, 2023
6be83b8
Fix IDE layer not resolving assoc type paths in path qualifiers
Veykril Dec 11, 2023
428a34a
Implement server::Span::Join
Veykril Dec 11, 2023
f427f56
Implement other non-db reliant server::Span functions
Veykril Dec 11, 2023
c89fd01
Move proc-macro-test into proc-macro-srv
Veykril Dec 15, 2023
874df3b
Add eager-expand comment
Veykril Dec 15, 2023
96051bc
Fix workspace layout
Veykril Dec 15, 2023
9197b54
Fix dead code warnings
Veykril Dec 15, 2023
ca957f4
Fix proc-macro-test-impl building without any proc-macros
Veykril Dec 15, 2023
2e52aa1
Clean up
Veykril Dec 15, 2023
9e8e124
Special case fixup spans in server::Span impl, they are immutable
Veykril Dec 22, 2023
5761b50
More general server config message for proc-macro-api
Veykril Dec 22, 2023
20e09c6
Auto merge of #16088 - Veykril:proc-macro-srv-2, r=Veykril
bors Dec 22, 2023
2a5b60b
internal: Update world symbols request definiton, prefer focus range …
Veykril Dec 22, 2023
23a1280
Auto merge of #16137 - unexge:complete-macros-in-macro-use, r=Veykril
bors Dec 22, 2023
d2dacc0
Auto merge of #16182 - Veykril:world-symbols-focus-range, r=Veykril
bors Dec 22, 2023
9d24764
internal: Cleanup Expander a bit
Veykril Dec 22, 2023
91046e9
fix: Fix completions analysis not caching all nodes in Semantics
Veykril Dec 22, 2023
3643c37
Auto merge of #16183 - Veykril:expander, r=Veykril
bors Dec 22, 2023
afbb8f3
Auto merge of #16184 - Veykril:completion-panic, r=Veykril
bors Dec 22, 2023
2426d42
fix: remove wrong comma after remove unnecessary braces
Young-Flash Dec 22, 2023
6c9d2ad
test: add test case for remove comma
Young-Flash Dec 22, 2023
a24ede2
Auto merge of #16185 - Young-Flash:fix_auto_remove_brace, r=lnicola
bors Dec 23, 2023
cc73c00
add test case for negative impl
Young-Flash Dec 24, 2023
85fb463
Auto merge of #16190 - Young-Flash:test_case_negative_impl, r=lnicola
bors Dec 24, 2023
3ab1666
Auto merge of #16096 - LuisFerLCC:master, r=lnicola
bors Dec 27, 2023
638df27
Fix some comments
cuishuang Dec 29, 2023
25444cd
Bump rust-version to 1.74
tetsuharuohzeki Dec 29, 2023
efc8709
Use Cargo's [workspace.lints.*] to config clippy
tetsuharuohzeki Dec 29, 2023
e1e4626
Auto merge of #16206 - cuishuang:master, r=lnicola
bors Dec 29, 2023
b9933fd
minor: Simplify implementation of apply_document_changes
hurryabit Dec 30, 2023
e872f50
Auto merge of #16217 - hurryabit:simplify-apply-change, r=lnicola
bors Dec 30, 2023
c133309
Fix out-of-bounds panic in some macros due to unhandled self_ref
holly-hacker Dec 31, 2023
cf52c4b
Auto merge of #16221 - holly-hacker:fix-16200, r=lnicola
bors Dec 31, 2023
5878651
add unresolved-assoc-item diagnostic
rosefromthedead Dec 31, 2023
0c3fbba
fix: Fix SyntaxContextID using incorrect self IDs
Veykril Jan 1, 2024
9db5155
Auto merge of #16224 - Veykril:syntax-ctx, r=Veykril
bors Jan 1, 2024
06be1b1
minor: Render more crate information in status command
Veykril Jan 1, 2024
aef441a
Auto merge of #16225 - Veykril:status, r=Veykril
bors Jan 1, 2024
3c8dd9e
Expose whether a channel has been dropped in lsp-server errors
Veykril Jan 1, 2024
a8d935e
Auto merge of #16226 - Veykril:lsp-server, r=Veykril
bors Jan 1, 2024
c99089c
Update crates/rust-analyzer/src/handlers/notification.rs
Veykril Jan 2, 2024
2034556
fix: add test for missing case in bool_to_enum
rmehri01 Oct 27, 2023
b5e0edf
style: clean up bool_to_enum assist
rmehri01 Oct 27, 2023
9f6a2c4
fix: use original range to deal with macros in bool_to_enum
rmehri01 Oct 27, 2023
b105e9b
fix: use original range to deal with macros in promote_local_to_const
rmehri01 Oct 27, 2023
e461efb
Auto merge of #15810 - rmehri01:assist_panics_in_macros, r=Veykril
bors Jan 2, 2024
f1de7d7
Auto merge of #16011 - ClSlaid:feat/settings/proc-macro/rebuild-on-sa…
bors Jan 2, 2024
9f46ff5
Auto merge of #16062 - davidbarsky:david/fix-references-to-removed-se…
bors Jan 2, 2024
e53a115
Auto merge of #16067 - roife:fix-introduce-named-generic-impl-inside-…
bors Jan 2, 2024
60fe5fd
Auto merge of #16049 - dfireBird:followup-callable-fields, r=Veykril
bors Jan 2, 2024
ee0d99d
Auto merge of #16081 - riverbl:trailing-whitespace, r=Veykril
bors Jan 2, 2024
792c946
Auto merge of #16082 - DropDemBits:structured-snippet-migrate-5, r=Ve…
bors Jan 2, 2024
306defa
Auto merge of #16114 - roife:fix-inline-with-self-type, r=Veykril
bors Jan 2, 2024
16457ab
Add some more crates to architecture.md
Veykril Jan 2, 2024
22f189b
Auto merge of #16228 - Veykril:arch.md, r=Veykril
bors Jan 2, 2024
34df296
Auto merge of #16112 - roife:rewrite-generate-delete-trait, r=Veykril
bors Jan 2, 2024
69410bb
feat: add assoc func quickfix for `unresolved_method` diagnostic
Young-Flash Dec 12, 2023
481fab1
chore: add test case for assoc func fix in `unresolved_method` diagno…
Young-Flash Dec 12, 2023
ed216e2
fix(completion): make the expected type a tad smarter with `Fn`s
saiintbrisson Dec 16, 2023
91bd596
fix: make editing range accommodate for macros
Young-Flash Jan 2, 2024
9a36bc3
fix(completion): render fn type
saiintbrisson Jan 2, 2024
e8dc8cc
fix: pick up new names when the name exists in 'introduce_named_generic'
roife Dec 9, 2023
186553d
refactor: extracted the fn handling conflicts in generics and add docs
roife Dec 9, 2023
bc1a577
fix: handle with type bounds in existing_params
roife Dec 10, 2023
919ecc6
Use HashSet to enhance performance in for_unique_generic_name in sugg…
roife Jan 2, 2024
7659109
Auto merge of #16136 - saiintbrisson:fix/completion/a-tad-smarter-wit…
bors Jan 2, 2024
f7a29e4
Auto merge of #16100 - Young-Flash:assoc_func_quickfix, r=Veykril
bors Jan 2, 2024
7040cef
Auto merge of #16068 - roife:fix-introduce-named-generic-name-conflic…
bors Jan 2, 2024
df94a87
Auto merge of #16139 - jimmyhmiller:master, r=Veykril
bors Jan 2, 2024
8136e73
fix: Notify user that linkedProjects is set when failing to discover …
Veykril Dec 18, 2023
1a0b772
Auto merge of #16153 - Veykril:err-msg, r=Veykril
bors Jan 2, 2024
86e559b
Auto merge of #16211 - tetsuharuohzeki:update-lint, r=Veykril
bors Jan 2, 2024
426d284
Auto merge of #16222 - rosefromthedead:unresolved-assoc-item, r=Veykril
bors Jan 2, 2024
f0108b9
Merge commit '426d2842c1f0e5cc5e34bb37c7ac3ee0945f9746' into sync-fro…
lnicola Jan 3, 2024
a8f2484
Allow unexpected_cfgs in proc-macro-test imp
lnicola Dec 25, 2023
b91d1c0
Add proc_macro_def_site to r-a ALLOW_FEATURES
lnicola Jan 2, 2024
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
2 changes: 1 addition & 1 deletion src/bootstrap/src/core/build_steps/tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ pub struct RustAnalyzer {
}

impl RustAnalyzer {
pub const ALLOW_FEATURES: &'static str = "rustc_private,proc_macro_internals,proc_macro_diagnostic,proc_macro_span,proc_macro_span_shrink";
pub const ALLOW_FEATURES: &'static str = "rustc_private,proc_macro_internals,proc_macro_diagnostic,proc_macro_span,proc_macro_span_shrink,proc_macro_def_site";
}

impl Step for RustAnalyzer {
Expand Down
2 changes: 1 addition & 1 deletion src/tools/rust-analyzer/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xtask = "run --package xtask --bin xtask --"
tq = "test -- -q"
qt = "tq"
lint = "clippy --all-targets -- -Aclippy::collapsible_if -Aclippy::needless_pass_by_value -Aclippy::nonminimal_bool -Aclippy::redundant_pattern_matching --cap-lints warn"
lint = "clippy --all-targets -- --cap-lints warn"

[target.x86_64-pc-windows-msvc]
linker = "rust-lld"
Expand Down
1 change: 0 additions & 1 deletion src/tools/rust-analyzer/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
- 'crates/proc-macro-api/**'
- 'crates/proc-macro-srv/**'
- 'crates/proc-macro-srv-cli/**'
- 'crates/proc-macro-test/**'

rust:
needs: changes
Expand Down
71 changes: 55 additions & 16 deletions src/tools/rust-analyzer/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ dependencies = [
"profile",
"rust-analyzer-salsa",
"rustc-hash",
"semver",
"span",
"stdx",
"syntax",
"test-utils",
"triomphe",
"tt",
"vfs",
]

Expand Down Expand Up @@ -516,8 +516,10 @@ dependencies = [
"rustc-dependencies",
"rustc-hash",
"smallvec",
"span",
"stdx",
"syntax",
"test-fixture",
"test-utils",
"tracing",
"triomphe",
Expand All @@ -542,6 +544,7 @@ dependencies = [
"profile",
"rustc-hash",
"smallvec",
"span",
"stdx",
"syntax",
"tracing",
Expand Down Expand Up @@ -581,6 +584,7 @@ dependencies = [
"smallvec",
"stdx",
"syntax",
"test-fixture",
"test-utils",
"tracing",
"tracing-subscriber",
Expand Down Expand Up @@ -624,6 +628,7 @@ dependencies = [
"smallvec",
"stdx",
"syntax",
"test-fixture",
"test-utils",
"text-edit",
"toolchain",
Expand All @@ -647,6 +652,7 @@ dependencies = [
"sourcegen",
"stdx",
"syntax",
"test-fixture",
"test-utils",
"text-edit",
]
Expand All @@ -666,6 +672,7 @@ dependencies = [
"smallvec",
"stdx",
"syntax",
"test-fixture",
"test-utils",
"text-edit",
]
Expand Down Expand Up @@ -694,8 +701,10 @@ dependencies = [
"rayon",
"rustc-hash",
"sourcegen",
"span",
"stdx",
"syntax",
"test-fixture",
"test-utils",
"text-edit",
"tracing",
Expand All @@ -720,6 +729,7 @@ dependencies = [
"sourcegen",
"stdx",
"syntax",
"test-fixture",
"test-utils",
"text-edit",
]
Expand All @@ -737,6 +747,7 @@ dependencies = [
"parser",
"stdx",
"syntax",
"test-fixture",
"test-utils",
"text-edit",
"triomphe",
Expand Down Expand Up @@ -903,11 +914,13 @@ version = "0.0.0"
dependencies = [
"anyhow",
"crossbeam-channel",
"hir-expand",
"ide",
"ide-db",
"itertools",
"proc-macro-api",
"project-model",
"span",
"tracing",
"tt",
"vfs",
Expand All @@ -932,33 +945,33 @@ checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4"

[[package]]
name = "lsp-server"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b52dccdf3302eefab8c8a1273047f0a3c3dca4b527c8458d00c09484c8371928"
version = "0.7.6"
dependencies = [
"crossbeam-channel",
"ctrlc",
"log",
"lsp-types",
"serde",
"serde_json",
]

[[package]]
name = "lsp-server"
version = "0.7.5"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "248f65b78f6db5d8e1b1604b4098a28b43d21a8eb1deeca22b1c421b276c7095"
dependencies = [
"crossbeam-channel",
"ctrlc",
"log",
"lsp-types",
"serde",
"serde_json",
]

[[package]]
name = "lsp-types"
version = "0.94.0"
version = "0.95.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b63735a13a1f9cd4f4835223d828ed9c2e35c8c5e61837774399f558b6a1237"
checksum = "158c1911354ef73e8fe42da6b10c0484cb65c7f1007f28022e847706c1ab6984"
dependencies = [
"bitflags 1.3.2",
"serde",
Expand All @@ -975,6 +988,7 @@ dependencies = [
"parser",
"rustc-hash",
"smallvec",
"span",
"stdx",
"syntax",
"test-utils",
Expand Down Expand Up @@ -1251,6 +1265,7 @@ dependencies = [
"serde",
"serde_json",
"snap",
"span",
"stdx",
"text-size",
"tracing",
Expand All @@ -1262,6 +1277,7 @@ dependencies = [
name = "proc-macro-srv"
version = "0.0.0"
dependencies = [
"base-db",
"expect-test",
"libloading",
"mbe",
Expand All @@ -1270,6 +1286,7 @@ dependencies = [
"paths",
"proc-macro-api",
"proc-macro-test",
"span",
"stdx",
"tt",
]
Expand All @@ -1287,14 +1304,9 @@ name = "proc-macro-test"
version = "0.0.0"
dependencies = [
"cargo_metadata",
"proc-macro-test-impl",
"toolchain",
]

[[package]]
name = "proc-macro-test-impl"
version = "0.0.0"

[[package]]
name = "proc-macro2"
version = "1.0.69"
Expand Down Expand Up @@ -1514,7 +1526,7 @@ dependencies = [
"ide-ssr",
"itertools",
"load-cargo",
"lsp-server 0.7.4",
"lsp-server 0.7.6 (registry+https://github.com/rust-lang/crates.io-index)",
"lsp-types",
"mbe",
"mimalloc",
Expand All @@ -1535,6 +1547,7 @@ dependencies = [
"sourcegen",
"stdx",
"syntax",
"test-fixture",
"test-utils",
"tikv-jemallocator",
"toolchain",
Expand Down Expand Up @@ -1726,6 +1739,17 @@ dependencies = [
"xshell",
]

[[package]]
name = "span"
version = "0.0.0"
dependencies = [
"la-arena 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"rust-analyzer-salsa",
"stdx",
"syntax",
"vfs",
]

[[package]]
name = "static_assertions"
version = "1.1.0"
Expand Down Expand Up @@ -1796,6 +1820,20 @@ dependencies = [
"ungrammar",
]

[[package]]
name = "test-fixture"
version = "0.0.0"
dependencies = [
"base-db",
"cfg",
"hir-expand",
"rustc-hash",
"span",
"stdx",
"test-utils",
"tt",
]

[[package]]
name = "test-utils"
version = "0.0.0"
Expand Down Expand Up @@ -1998,6 +2036,7 @@ name = "tt"
version = "0.0.0"
dependencies = [
"smol_str",
"span",
"stdx",
"text-size",
]
Expand Down
25 changes: 19 additions & 6 deletions src/tools/rust-analyzer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[workspace]
members = ["xtask/", "lib/*", "crates/*"]
exclude = ["crates/proc-macro-test/imp"]
exclude = ["crates/proc-macro-srv/proc-macro-test/"]
resolver = "2"

[workspace.package]
rust-version = "1.70"
rust-version = "1.74"
edition = "2021"
license = "MIT OR Apache-2.0"
authors = ["rust-analyzer team"]
Expand Down Expand Up @@ -70,10 +70,9 @@ proc-macro-srv = { path = "./crates/proc-macro-srv", version = "0.0.0" }
proc-macro-srv-cli = { path = "./crates/proc-macro-srv-cli", version = "0.0.0" }
profile = { path = "./crates/profile", version = "0.0.0" }
project-model = { path = "./crates/project-model", version = "0.0.0" }
sourcegen = { path = "./crates/sourcegen", version = "0.0.0" }
span = { path = "./crates/span", version = "0.0.0" }
stdx = { path = "./crates/stdx", version = "0.0.0" }
syntax = { path = "./crates/syntax", version = "0.0.0" }
test-utils = { path = "./crates/test-utils", version = "0.0.0" }
text-edit = { path = "./crates/text-edit", version = "0.0.0" }
toolchain = { path = "./crates/toolchain", version = "0.0.0" }
tt = { path = "./crates/tt", version = "0.0.0" }
Expand All @@ -82,19 +81,25 @@ vfs = { path = "./crates/vfs", version = "0.0.0" }
rustc-dependencies = { path = "./crates/rustc-dependencies", version = "0.0.0" }

# local crates that aren't published to crates.io. These should not have versions.
proc-macro-test = { path = "./crates/proc-macro-test" }
sourcegen = { path = "./crates/sourcegen" }
test-fixture = { path = "./crates/test-fixture" }
test-utils = { path = "./crates/test-utils" }

# In-tree crates that are published separately and follow semver. See lib/README.md
line-index = { version = "0.1.1" }
la-arena = { version = "0.3.1" }
lsp-server = { version = "0.7.4" }
lsp-server = { version = "0.7.6" }

# non-local crates
anyhow = "1.0.75"
arrayvec = "0.7.4"
bitflags = "2.4.1"
cargo_metadata = "0.18.1"
command-group = "2.0.1"
crossbeam-channel = "0.5.8"
dissimilar = "1.0.7"
either = "1.9.0"
expect-test = "1.4.0"
hashbrown = { version = "0.14", features = [
"inline-more",
], default-features = false }
Expand All @@ -105,6 +110,7 @@ nohash-hasher = "0.2.0"
rayon = "1.8.0"
rust-analyzer-salsa = "0.17.0-pre.4"
rustc-hash = "1.1.0"
semver = "1.0.14"
serde = { version = "1.0.192", features = ["derive"] }
serde_json = "1.0.108"
smallvec = { version = "1.10.0", features = [
Expand All @@ -124,5 +130,12 @@ tracing-subscriber = { version = "0.3.18", default-features = false, features =
triomphe = { version = "0.1.10", default-features = false, features = ["std"] }
xshell = "0.2.5"


# We need to freeze the version of the crate, as the raw-api feature is considered unstable
dashmap = { version = "=5.5.3", features = ["raw-api"] }

[workspace.lints.clippy]
collapsible_if = "allow"
needless_pass_by_value = "allow"
nonminimal_bool = "allow"
redundant_pattern_matching = "allow"
7 changes: 5 additions & 2 deletions src/tools/rust-analyzer/crates/base-db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ la-arena.workspace = true
rust-analyzer-salsa.workspace = true
rustc-hash.workspace = true
triomphe.workspace = true
semver.workspace = true

# local deps
cfg.workspace = true
profile.workspace = true
stdx.workspace = true
syntax.workspace = true
test-utils.workspace = true
tt.workspace = true
vfs.workspace = true
span.workspace = true

[lints]
workspace = true
Loading
Loading