Use built-in [lints] table in Cargo.toml
This commit is contained in:
parent
a865b38002
commit
5cd98f069d
32 changed files with 274 additions and 244 deletions
42
Cargo.toml
42
Cargo.toml
|
|
@ -10,6 +10,9 @@ homepage.workspace = true
|
|||
categories.workspace = true
|
||||
keywords.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
all-features = true
|
||||
|
|
@ -74,6 +77,15 @@ thiserror.workspace = true
|
|||
image.workspace = true
|
||||
image.optional = true
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = "0.5"
|
||||
iced_wgpu.workspace = true
|
||||
|
||||
[[bench]]
|
||||
name = "wgpu"
|
||||
harness = false
|
||||
required-features = ["canvas"]
|
||||
|
||||
[profile.release-opt]
|
||||
inherits = "release"
|
||||
codegen-units = 1
|
||||
|
|
@ -165,11 +177,27 @@ winapi = "0.3"
|
|||
window_clipboard = "0.4.1"
|
||||
winit = { git = "https://github.com/iced-rs/winit.git", rev = "592bd152f6d5786fae7d918532d7db752c0d164f" }
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = "0.5"
|
||||
iced_wgpu.workspace = true
|
||||
[workspace.lints.rust]
|
||||
rust_2018_idioms = "forbid"
|
||||
missing_debug_implementations = "deny"
|
||||
missing_docs = "deny"
|
||||
unsafe_code = "deny"
|
||||
unused_results = "deny"
|
||||
|
||||
[[bench]]
|
||||
name = "wgpu"
|
||||
harness = false
|
||||
required-features = ["canvas"]
|
||||
[workspace.lints.clippy]
|
||||
type-complexity = "allow"
|
||||
semicolon_if_nothing_returned = "deny"
|
||||
trivially-copy-pass-by-ref = "deny"
|
||||
default_trait_access = "deny"
|
||||
match-wildcard-for-single-variants = "deny"
|
||||
redundant-closure-for-method-calls = "deny"
|
||||
filter_map_next = "deny"
|
||||
manual_let_else = "deny"
|
||||
unused_async = "deny"
|
||||
from_over_into = "deny"
|
||||
needless_borrow = "deny"
|
||||
new_without_default = "deny"
|
||||
useless_conversion = "deny"
|
||||
|
||||
[workspace.lints.rustdoc]
|
||||
broken_intra_doc_links = "forbid"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue