build: configure clippy lints at the workspace level

(cherry picked from commit 9c08edb066)
This commit is contained in:
Amaan Qureshi 2024-10-06 13:42:14 -04:00
parent 6c4c522724
commit bb8eb83f50
11 changed files with 98 additions and 16 deletions

View file

@ -12,6 +12,9 @@ license.workspace = true
keywords.workspace = true
categories.workspace = true
[lints]
workspace = true
[[bin]]
name = "tree-sitter"
path = "src/main.rs"

View file

@ -12,6 +12,9 @@ license.workspace = true
keywords.workspace = true
categories.workspace = true
[lints]
workspace = true
[dependencies]
anyhow.workspace = true
dirs.workspace = true

View file

@ -12,6 +12,9 @@ license.workspace = true
keywords.workspace = true
categories.workspace = true
[lints]
workspace = true
[dependencies]
anyhow.workspace = true
heck.workspace = true

View file

@ -12,6 +12,9 @@ license.workspace = true
keywords.workspace = true
categories.workspace = true
[lints]
workspace = true
[features]
wasm = ["tree-sitter/wasm"]
# TODO: For backward compatibility these must be enabled by default,

View file

@ -5,6 +5,9 @@ edition.workspace = true
rust-version.workspace = true
publish = false
[lints]
workspace = true
[lib]
proc-macro = true