2018-02-03 03:51:06 -06:00
|
|
|
[workspace]
|
2021-01-15 11:57:32 -06:00
|
|
|
members = ["xtask/", "lib/*", "crates/*"]
|
2023-12-15 07:27:45 -06:00
|
|
|
exclude = ["crates/proc-macro-srv/proc-macro-test/"]
|
2023-06-04 03:02:11 -05:00
|
|
|
resolver = "2"
|
2018-08-15 16:23:22 -05:00
|
|
|
|
2023-01-16 09:33:01 -06:00
|
|
|
[workspace.package]
|
2023-07-14 08:15:26 -05:00
|
|
|
rust-version = "1.70"
|
2023-01-16 09:41:47 -06:00
|
|
|
edition = "2021"
|
|
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
authors = ["rust-analyzer team"]
|
2023-01-16 09:33:01 -06:00
|
|
|
|
2019-10-11 03:06:28 -05:00
|
|
|
[profile.dev]
|
2020-08-18 10:44:51 -05:00
|
|
|
# Disabling debug info speeds up builds a bunch,
|
2019-11-11 01:11:46 -06:00
|
|
|
# and we don't rely on it for debugging that much.
|
2023-12-04 14:15:44 -06:00
|
|
|
debug = 0
|
2019-10-11 03:06:28 -05:00
|
|
|
|
2020-08-18 10:44:51 -05:00
|
|
|
[profile.dev.package]
|
|
|
|
# These speed up local tests.
|
|
|
|
rowan.opt-level = 3
|
|
|
|
rustc-hash.opt-level = 3
|
|
|
|
smol_str.opt-level = 3
|
|
|
|
text-size.opt-level = 3
|
|
|
|
# This speeds up `cargo xtask dist`.
|
|
|
|
miniz_oxide.opt-level = 3
|
|
|
|
|
2018-08-15 16:23:22 -05:00
|
|
|
[profile.release]
|
2021-05-30 18:12:11 -05:00
|
|
|
incremental = true
|
2021-10-19 07:15:47 -05:00
|
|
|
# Set this to 1 or 2 to get more useful backtraces in debugger.
|
|
|
|
debug = 0
|
2020-01-31 13:49:44 -06:00
|
|
|
|
2018-12-30 02:09:17 -06:00
|
|
|
[patch.'crates-io']
|
2020-01-11 15:15:27 -06:00
|
|
|
# rowan = { path = "../rowan" }
|
2020-02-15 11:00:14 -06:00
|
|
|
|
|
|
|
# chalk-solve = { path = "../chalk/chalk-solve" }
|
|
|
|
# chalk-ir = { path = "../chalk/chalk-ir" }
|
2020-10-30 12:57:16 -05:00
|
|
|
# chalk-recursive = { path = "../chalk/chalk-recursive" }
|
2022-10-13 10:39:14 -05:00
|
|
|
# chalk-derive = { path = "../chalk/chalk-derive" }
|
2023-06-20 20:23:07 -05:00
|
|
|
# line-index = { path = "lib/line-index" }
|
|
|
|
# la-arena = { path = "lib/la-arena" }
|
|
|
|
# lsp-server = { path = "lib/lsp-server" }
|
|
|
|
|
2020-12-15 08:37:37 -06:00
|
|
|
|
|
|
|
# ungrammar = { path = "../ungrammar" }
|
2021-05-06 12:59:54 -05:00
|
|
|
|
2023-12-07 03:57:51 -06:00
|
|
|
# rust-analyzer-salsa = { path = "../salsa" }
|
2023-01-17 03:52:26 -06:00
|
|
|
|
|
|
|
[workspace.dependencies]
|
|
|
|
# local crates
|
|
|
|
base-db = { path = "./crates/base-db", version = "0.0.0" }
|
|
|
|
cfg = { path = "./crates/cfg", version = "0.0.0" }
|
|
|
|
flycheck = { path = "./crates/flycheck", version = "0.0.0" }
|
|
|
|
hir = { path = "./crates/hir", version = "0.0.0" }
|
|
|
|
hir-def = { path = "./crates/hir-def", version = "0.0.0" }
|
|
|
|
hir-expand = { path = "./crates/hir-expand", version = "0.0.0" }
|
|
|
|
hir-ty = { path = "./crates/hir-ty", version = "0.0.0" }
|
|
|
|
ide = { path = "./crates/ide", version = "0.0.0" }
|
|
|
|
ide-assists = { path = "./crates/ide-assists", version = "0.0.0" }
|
|
|
|
ide-completion = { path = "./crates/ide-completion", version = "0.0.0" }
|
|
|
|
ide-db = { path = "./crates/ide-db", version = "0.0.0" }
|
|
|
|
ide-diagnostics = { path = "./crates/ide-diagnostics", version = "0.0.0" }
|
|
|
|
ide-ssr = { path = "./crates/ide-ssr", version = "0.0.0" }
|
|
|
|
intern = { path = "./crates/intern", version = "0.0.0" }
|
|
|
|
limit = { path = "./crates/limit", version = "0.0.0" }
|
2023-07-03 10:40:31 -05:00
|
|
|
load-cargo = { path = "./crates/load-cargo", version = "0.0.0" }
|
2023-01-17 03:52:26 -06:00
|
|
|
mbe = { path = "./crates/mbe", version = "0.0.0" }
|
|
|
|
parser = { path = "./crates/parser", version = "0.0.0" }
|
|
|
|
paths = { path = "./crates/paths", version = "0.0.0" }
|
|
|
|
proc-macro-api = { path = "./crates/proc-macro-api", version = "0.0.0" }
|
|
|
|
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" }
|
2023-12-18 06:30:41 -06:00
|
|
|
span = { path = "./crates/span", version = "0.0.0" }
|
2023-01-17 03:52:26 -06:00
|
|
|
stdx = { path = "./crates/stdx", version = "0.0.0" }
|
|
|
|
syntax = { path = "./crates/syntax", 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" }
|
|
|
|
vfs-notify = { path = "./crates/vfs-notify", version = "0.0.0" }
|
|
|
|
vfs = { path = "./crates/vfs", version = "0.0.0" }
|
2023-09-15 09:40:11 -05:00
|
|
|
rustc-dependencies = { path = "./crates/rustc-dependencies", version = "0.0.0" }
|
2023-06-19 05:44:09 -05:00
|
|
|
|
2023-07-02 04:06:20 -05:00
|
|
|
# local crates that aren't published to crates.io. These should not have versions.
|
2023-12-18 07:53:11 -06:00
|
|
|
sourcegen = { path = "./crates/sourcegen" }
|
|
|
|
test-fixture = { path = "./crates/test-fixture" }
|
|
|
|
test-utils = { path = "./crates/test-utils" }
|
2023-07-02 04:06:20 -05:00
|
|
|
|
2023-06-20 20:23:07 -05:00
|
|
|
# In-tree crates that are published separately and follow semver. See lib/README.md
|
2023-12-12 09:18:08 -06:00
|
|
|
line-index = { version = "0.1.1" }
|
2023-06-20 20:23:07 -05:00
|
|
|
la-arena = { version = "0.3.1" }
|
2023-08-22 05:42:53 -05:00
|
|
|
lsp-server = { version = "0.7.4" }
|
2023-03-25 08:43:08 -05:00
|
|
|
|
2023-02-14 10:01:01 -06:00
|
|
|
# non-local crates
|
2023-11-15 04:49:32 -06:00
|
|
|
anyhow = "1.0.75"
|
2023-12-20 05:53:46 -06:00
|
|
|
arrayvec = "0.7.4"
|
2023-11-15 13:20:47 -06:00
|
|
|
bitflags = "2.4.1"
|
2023-11-15 13:18:49 -06:00
|
|
|
cargo_metadata = "0.18.1"
|
2023-12-18 07:53:11 -06:00
|
|
|
command-group = "2.0.1"
|
|
|
|
crossbeam-channel = "0.5.8"
|
2023-11-15 05:34:56 -06:00
|
|
|
dissimilar = "1.0.7"
|
2023-11-15 05:07:36 -06:00
|
|
|
either = "1.9.0"
|
2023-12-18 07:53:11 -06:00
|
|
|
expect-test = "1.4.0"
|
2023-12-07 04:48:58 -06:00
|
|
|
hashbrown = { version = "0.14", features = [
|
|
|
|
"inline-more",
|
|
|
|
], default-features = false }
|
2023-11-15 05:21:34 -06:00
|
|
|
indexmap = "2.1.0"
|
2023-11-15 04:53:56 -06:00
|
|
|
itertools = "0.12.0"
|
2023-11-16 13:48:49 -06:00
|
|
|
libc = "0.2.150"
|
2023-12-07 03:57:51 -06:00
|
|
|
nohash-hasher = "0.2.0"
|
|
|
|
rayon = "1.8.0"
|
|
|
|
rust-analyzer-salsa = "0.17.0-pre.4"
|
|
|
|
rustc-hash = "1.1.0"
|
2023-12-19 05:53:10 -06:00
|
|
|
semver = "1.0.14"
|
2023-12-07 03:57:51 -06:00
|
|
|
serde = { version = "1.0.192", features = ["derive"] }
|
|
|
|
serde_json = "1.0.108"
|
2023-05-06 02:51:25 -05:00
|
|
|
smallvec = { version = "1.10.0", features = [
|
2023-09-15 21:54:06 -05:00
|
|
|
"const_new",
|
|
|
|
"union",
|
|
|
|
"const_generics",
|
2023-05-06 02:51:25 -05:00
|
|
|
] }
|
2023-12-07 03:57:51 -06:00
|
|
|
smol_str = "0.2.0"
|
|
|
|
text-size = "1.1.1"
|
2023-11-15 05:00:32 -06:00
|
|
|
tracing = "0.1.40"
|
2023-11-15 13:07:31 -06:00
|
|
|
tracing-tree = "0.3.0"
|
2023-11-15 05:04:39 -06:00
|
|
|
tracing-subscriber = { version = "0.3.18", default-features = false, features = [
|
|
|
|
"registry",
|
|
|
|
"fmt",
|
|
|
|
"tracing-log",
|
|
|
|
] }
|
2023-11-28 09:27:17 -06:00
|
|
|
triomphe = { version = "0.1.10", default-features = false, features = ["std"] }
|
2023-12-07 03:57:51 -06:00
|
|
|
xshell = "0.2.5"
|
|
|
|
|
2023-12-18 07:53:11 -06:00
|
|
|
|
2023-12-07 04:48:58 -06:00
|
|
|
# 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"] }
|