mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 15:44:31 +03:00
22fe03913c
This PR moves the Clippy configuration up to the workspace level. We're using the [`lints` table](https://doc.rust-lang.org/cargo/reference/workspaces.html#the-lints-table) to configure the Clippy ruleset in the workspace's `Cargo.toml`. Each crate in the workspace now has the following in their own `Cargo.toml` to inherit the lints from the workspace: ```toml [lints] workspace = true ``` This allows for configuring rust-analyzer to show Clippy lints in the editor by using the following configuration in your Zed `settings.json`: ```json { "lsp": { "rust-analyzer": { "initialization_options": { "check": { "command": "clippy" } } } } ``` Release Notes: - N/A
67 lines
1.8 KiB
TOML
67 lines
1.8 KiB
TOML
[package]
|
|
name = "semantic_index"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/semantic_index.rs"
|
|
doctest = false
|
|
|
|
[dependencies]
|
|
ai.workspace = true
|
|
anyhow.workspace = true
|
|
collections.workspace = true
|
|
futures.workspace = true
|
|
gpui.workspace = true
|
|
language.workspace = true
|
|
lazy_static.workspace = true
|
|
log.workspace = true
|
|
ndarray = { version = "0.15.0" }
|
|
ordered-float.workspace = true
|
|
parking_lot.workspace = true
|
|
postage.workspace = true
|
|
project.workspace = true
|
|
rand.workspace = true
|
|
release_channel.workspace = true
|
|
rpc.workspace = true
|
|
rusqlite.workspace = true
|
|
schemars.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
settings.workspace = true
|
|
sha1 = "0.10.5"
|
|
smol.workspace = true
|
|
tree-sitter.workspace = true
|
|
util.workspace = true
|
|
workspace.workspace = true
|
|
|
|
[dev-dependencies]
|
|
ai = { workspace = true, features = ["test-support"] }
|
|
collections = { workspace = true, features = ["test-support"] }
|
|
ctor.workspace = true
|
|
env_logger.workspace = true
|
|
gpui = { workspace = true, features = ["test-support"] }
|
|
language = { workspace = true, features = ["test-support"] }
|
|
pretty_assertions.workspace = true
|
|
project = { workspace = true, features = ["test-support"] }
|
|
rand.workspace = true
|
|
rpc = { workspace = true, features = ["test-support"] }
|
|
settings = { workspace = true, features = ["test-support"]}
|
|
tempfile.workspace = true
|
|
tree-sitter-cpp.workspace = true
|
|
tree-sitter-elixir.workspace = true
|
|
tree-sitter-json.workspace = true
|
|
tree-sitter-lua.workspace = true
|
|
tree-sitter-php.workspace = true
|
|
tree-sitter-ruby.workspace = true
|
|
tree-sitter-rust.workspace = true
|
|
tree-sitter-toml.workspace = true
|
|
tree-sitter-typescript.workspace = true
|
|
unindent.workspace = true
|
|
workspace = { workspace = true, features = ["test-support"] }
|