]> git.lizzy.rs Git - rust.git/blob - crates/rust-analyzer/Cargo.toml
minor: bump lsp-server version
[rust.git] / 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.57"
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.56"
22 crossbeam-channel = "0.5.4"
23 dissimilar = "1.0.3"
24 itertools = "0.10.3"
25 lsp-types = { version = "0.92.1", features = ["proposed"] }
26 parking_lot = "0.12.0"
27 xflags = "0.2.4"
28 oorandom = "11.1.3"
29 rustc-hash = "1.1.0"
30 serde = { version = "1.0.136", features = ["derive"] }
31 serde_json = { version = "1.0.79", features = ["preserve_order"] }
32 threadpool = "1.8.1"
33 rayon = "1.5.1"
34 num_cpus = "1.13.1"
35 mimalloc = { version = "0.1.28", default-features = false, optional = true }
36 lsp-server = "0.6.0"
37 tracing = "0.1.32"
38 tracing-subscriber = { version = "0.3.9", default-features = false, features = [
39     "env-filter",
40     "registry",
41     "fmt",
42     "tracing-log",
43 ] }
44 tracing-log = "0.1.2"
45 tracing-tree = "0.2.0"
46 always-assert = "0.1.2"
47
48 stdx = { path = "../stdx", version = "0.0.0" }
49 flycheck = { path = "../flycheck", version = "0.0.0" }
50 ide = { path = "../ide", version = "0.0.0" }
51 ide_db = { path = "../ide_db", version = "0.0.0" }
52 profile = { path = "../profile", version = "0.0.0" }
53 project_model = { path = "../project_model", version = "0.0.0" }
54 syntax = { path = "../syntax", version = "0.0.0" }
55 vfs = { path = "../vfs", version = "0.0.0" }
56 vfs-notify = { path = "../vfs-notify", version = "0.0.0" }
57 cfg = { path = "../cfg", version = "0.0.0" }
58 toolchain = { path = "../toolchain", version = "0.0.0" }
59 tt = { path = "../tt", version = "0.0.0" }
60 proc_macro_api = { path = "../proc_macro_api", version = "0.0.0" }
61
62 # This should only be used in CLI
63 ide_ssr = { path = "../ide_ssr", version = "0.0.0" }
64 hir = { path = "../hir", version = "0.0.0" }
65 hir_def = { path = "../hir_def", version = "0.0.0" }
66 hir_ty = { path = "../hir_ty", version = "0.0.0" }
67 proc_macro_srv = { path = "../proc_macro_srv", version = "0.0.0" }
68
69 [target.'cfg(windows)'.dependencies]
70 winapi = "0.3.9"
71
72 [target.'cfg(not(target_env = "msvc"))'.dependencies]
73 jemallocator = { version = "0.4.3", package = "tikv-jemallocator", optional = true }
74
75 [dev-dependencies]
76 expect-test = "1.2.2"
77 jod-thread = "0.1.2"
78 xshell = "0.2.1"
79
80 test_utils = { path = "../test_utils" }
81 sourcegen = { path = "../sourcegen" }
82 mbe = { path = "../mbe" }
83
84 [features]
85 jemalloc = ["jemallocator", "profile/jemalloc"]
86 force-always-assert = ["always-assert/force"]