]> git.lizzy.rs Git - rust.git/blob - crates/rust-analyzer/Cargo.toml
57724bcbc59f8ef273ee03951972d163760faa0b
[rust.git] / crates / rust-analyzer / Cargo.toml
1 [package]
2 edition = "2018"
3 name = "rust-analyzer"
4 version = "0.1.0"
5 authors = ["rust-analyzer developers"]
6 autobins = false
7 license = "MIT OR Apache-2.0"
8
9 [lib]
10 doctest = false
11
12 [[bin]]
13 name = "rust-analyzer"
14 path = "src/bin/main.rs"
15
16 [dependencies]
17 anyhow = "1.0.26"
18 crossbeam-channel = "0.4.0"
19 env_logger = { version = "0.7.1", default-features = false }
20 globset = "0.4.4"
21 itertools = "0.9.0"
22 jod-thread = "0.1.0"
23 log = "0.4.8"
24 lsp-types = { version = "0.76.0", features = ["proposed"] }
25 parking_lot = "0.11.0"
26 pico-args = "0.3.1"
27 rand = { version = "0.7.3", features = ["small_rng"] }
28 rustc-hash = "1.1.0"
29 serde = { version = "1.0.106", features = ["derive"] }
30 serde_json = "1.0.48"
31 threadpool = "1.7.1"
32 rayon = "1.3.1"
33
34 stdx = { path = "../stdx" }
35
36 lsp-server = "0.3.3"
37 flycheck = { path = "../flycheck" }
38 ra_ide = { path = "../ra_ide" }
39 ra_prof = { path = "../ra_prof" }
40 ra_project_model = { path = "../ra_project_model" }
41 ra_syntax = { path = "../ra_syntax" }
42 ra_text_edit = { path = "../ra_text_edit" }
43 vfs = { path = "../vfs" }
44 vfs-notify = { path = "../vfs-notify" }
45 ra_cfg = { path = "../ra_cfg"}
46 ra_toolchain = { path = "../ra_toolchain" }
47
48 # This should only be used in CLI
49 ra_db = { path = "../ra_db" }
50 ra_ide_db = { path = "../ra_ide_db" }
51 ra_ssr = { path = "../ra_ssr" }
52 hir = { path = "../ra_hir", package = "ra_hir" }
53 hir_def = { path = "../ra_hir_def", package = "ra_hir_def" }
54 hir_ty = { path = "../ra_hir_ty", package = "ra_hir_ty" }
55 ra_proc_macro_srv = { path = "../ra_proc_macro_srv" }
56
57 [target.'cfg(windows)'.dependencies]
58 winapi = "0.3.8"
59
60 [dev-dependencies]
61 tempfile = "3.1.0"
62 expect = { path = "../expect" }
63 test_utils = { path = "../test_utils" }
64 mbe = { path = "../ra_mbe", package = "ra_mbe" }
65 tt = { path = "../ra_tt", package = "ra_tt" }
66
67 [features]
68 jemalloc = [ "ra_prof/jemalloc" ]
69 mimalloc = [ "ra_prof/mimalloc" ]