]> git.proxmox.com Git - rustc.git/blob - src/tools/rust-analyzer/crates/rust-analyzer/Cargo.toml
New upstream version 1.68.2+dfsg1
[rustc.git] / src / tools / rust-analyzer / crates / rust-analyzer / Cargo.toml
1 [package]
2 name = "rust-analyzer"
3 version = "0.0.0"
4 authors = ["rust-analyzer Team"]
5 homepage = "https://github.com/rust-analyzer/rust-analyzer"
6 description = "A language server for the Rust programming language"
7 documentation = "https://rust-analyzer.github.io/manual.html"
8 license = "MIT OR Apache-2.0"
9 autobins = false
10 edition = "2021"
11 rust-version = "1.65"
12
13 [lib]
14 doctest = false
15
16 [[bin]]
17 name = "rust-analyzer"
18 path = "src/bin/main.rs"
19
20 [dependencies]
21 anyhow = "1.0.62"
22 crossbeam-channel = "0.5.5"
23 dissimilar = "1.0.4"
24 itertools = "0.10.5"
25 scip = "0.1.1"
26 lsp-types = { version = "=0.93.2", features = ["proposed"] }
27 parking_lot = "0.12.1"
28 xflags = "0.3.0"
29 oorandom = "11.1.3"
30 rustc-hash = "1.1.0"
31 serde = { version = "1.0.137", features = ["derive"] }
32 serde_json = { version = "1.0.81", features = ["preserve_order"] }
33 threadpool = "1.8.1"
34 rayon = "1.5.3"
35 num_cpus = "1.13.1"
36 mimalloc = { version = "0.1.30", default-features = false, optional = true }
37 lsp-server = { version = "0.7.0", path = "../../lib/lsp-server" }
38 tracing = "0.1.35"
39 tracing-subscriber = { version = "0.3.16", default-features = false, features = [
40 "env-filter",
41 "registry",
42 "fmt",
43 "tracing-log",
44 ] }
45 tracing-log = "0.1.3"
46 tracing-tree = "0.2.1"
47 always-assert = "0.1.2"
48
49 stdx = { path = "../stdx", version = "0.0.0" }
50 flycheck = { path = "../flycheck", version = "0.0.0" }
51 ide = { path = "../ide", version = "0.0.0" }
52 ide-db = { path = "../ide-db", version = "0.0.0" }
53 profile = { path = "../profile", version = "0.0.0" }
54 project-model = { path = "../project-model", version = "0.0.0" }
55 syntax = { path = "../syntax", version = "0.0.0" }
56 vfs = { path = "../vfs", version = "0.0.0" }
57 vfs-notify = { path = "../vfs-notify", version = "0.0.0" }
58 cfg = { path = "../cfg", version = "0.0.0" }
59 toolchain = { path = "../toolchain", version = "0.0.0" }
60 tt = { path = "../tt", version = "0.0.0" }
61 proc-macro-api = { path = "../proc-macro-api", version = "0.0.0" }
62
63 # This should only be used in CLI
64 ide-ssr = { path = "../ide-ssr", version = "0.0.0" }
65 hir = { path = "../hir", version = "0.0.0" }
66 hir-def = { path = "../hir-def", version = "0.0.0" }
67 hir-ty = { path = "../hir-ty", version = "0.0.0" }
68 proc-macro-srv = { path = "../proc-macro-srv", version = "0.0.0" }
69
70 [target.'cfg(windows)'.dependencies]
71 winapi = "0.3.9"
72
73 [target.'cfg(not(target_env = "msvc"))'.dependencies]
74 jemallocator = { version = "0.5.0", package = "tikv-jemallocator", optional = true }
75
76 [dev-dependencies]
77 expect-test = "1.4.0"
78 jod-thread = "0.1.2"
79 xshell = "0.2.2"
80
81 test-utils = { path = "../test-utils" }
82 sourcegen = { path = "../sourcegen" }
83 mbe = { path = "../mbe" }
84
85 [features]
86 jemalloc = ["jemallocator", "profile/jemalloc"]
87 force-always-assert = ["always-assert/force"]
88 in-rust-tree = [
89 "proc-macro-srv/sysroot-abi",
90 "ide/in-rust-tree",
91 "syntax/in-rust-tree",
92 ]