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"
17 name = "rust-analyzer"
18 path = "src/bin/main.rs"
22 crossbeam-channel = "0.5.5"
26 lsp-types = { version = "=0.93.2", features = ["proposed"] }
27 parking_lot = "0.12.1"
31 serde = { version = "1.0.137", features = ["derive"] }
32 serde_json = { version = "1.0.81", features = ["preserve_order"] }
36 mimalloc = { version = "0.1.30", default-features = false, optional = true }
37 lsp-server = { version = "0.7.0", path = "../../lib/lsp-server" }
39 tracing-subscriber = { version = "0.3.16", default-features = false, features = [
46 tracing-tree = "0.2.1"
47 always-assert = "0.1.2"
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" }
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" }
70 [target.'cfg(windows)'.dependencies]
73 [target.'cfg(not(target_env = "msvc"))'.dependencies]
74 jemallocator = { version = "0.5.0", package = "tikv-jemallocator", optional = true }
81 test-utils = { path = "../test-utils" }
82 sourcegen = { path = "../sourcegen" }
83 mbe = { path = "../mbe" }
86 jemalloc = ["jemallocator", "profile/jemalloc"]
87 force-always-assert = ["always-assert/force"]
89 "proc-macro-srv/sysroot-abi",
91 "syntax/in-rust-tree",