Use cargo workspace lints
This commit is contained in:
parent
131b581880
commit
db529688e9
8 changed files with 21 additions and 33 deletions
|
|
@ -19,5 +19,14 @@ thiserror = "1.0.56"
|
||||||
git = "https://github.com/Garmelon/toss.git"
|
git = "https://github.com/Garmelon/toss.git"
|
||||||
tag = "v0.2.2"
|
tag = "v0.2.2"
|
||||||
|
|
||||||
|
[workspace.lints]
|
||||||
|
rust.unsafe_code = "forbid"
|
||||||
|
rust.future_incompatible = "warn"
|
||||||
|
rust.rust_2018_idioms = "warn"
|
||||||
|
rust.unused = "warn"
|
||||||
|
rust.noop_method_call = "warn"
|
||||||
|
rust.single_use_lifetimes = "warn"
|
||||||
|
clippy.use_self = "warn"
|
||||||
|
|
||||||
[profile.dev.package."*"]
|
[profile.dev.package."*"]
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
|
|
|
||||||
|
|
@ -11,3 +11,6 @@ serde = { workspace = true }
|
||||||
thiserror = { workspace = true }
|
thiserror = { workspace = true }
|
||||||
|
|
||||||
toml = "0.8.8"
|
toml = "0.8.8"
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,3 @@
|
||||||
#![forbid(unsafe_code)]
|
|
||||||
// Rustc lint groups
|
|
||||||
#![warn(future_incompatible)]
|
|
||||||
#![warn(rust_2018_idioms)]
|
|
||||||
#![warn(unused)]
|
|
||||||
// Rustc lints
|
|
||||||
#![warn(noop_method_call)]
|
|
||||||
#![warn(single_use_lifetimes)]
|
|
||||||
// Clippy lints
|
|
||||||
#![warn(clippy::use_self)]
|
|
||||||
|
|
||||||
pub mod doc;
|
pub mod doc;
|
||||||
mod euph;
|
mod euph;
|
||||||
mod keys;
|
mod keys;
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,6 @@ thiserror = { workspace = true }
|
||||||
toss = { workspace = true }
|
toss = { workspace = true }
|
||||||
|
|
||||||
edit = "0.1.5"
|
edit = "0.1.5"
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -11,3 +11,6 @@ syn = "2.0.48"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
proc-macro = true
|
proc-macro = true
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,3 @@
|
||||||
#![forbid(unsafe_code)]
|
|
||||||
// Rustc lint groups
|
|
||||||
#![warn(future_incompatible)]
|
|
||||||
#![warn(rust_2018_idioms)]
|
|
||||||
#![warn(unused)]
|
|
||||||
// Rustc lints
|
|
||||||
#![warn(noop_method_call)]
|
|
||||||
#![warn(single_use_lifetimes)]
|
|
||||||
// Clippy lints
|
|
||||||
#![warn(clippy::use_self)]
|
|
||||||
|
|
||||||
use syn::{parse_macro_input, DeriveInput};
|
use syn::{parse_macro_input, DeriveInput};
|
||||||
|
|
||||||
mod document;
|
mod document;
|
||||||
|
|
|
||||||
|
|
@ -45,3 +45,6 @@ features = ["bot"]
|
||||||
git = "https://github.com/Garmelon/vault.git"
|
git = "https://github.com/Garmelon/vault.git"
|
||||||
tag = "v0.3.0"
|
tag = "v0.3.0"
|
||||||
features = ["tokio"]
|
features = ["tokio"]
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,3 @@
|
||||||
#![forbid(unsafe_code)]
|
|
||||||
// Rustc lint groups
|
|
||||||
#![warn(future_incompatible)]
|
|
||||||
#![warn(rust_2018_idioms)]
|
|
||||||
#![warn(unused)]
|
|
||||||
// Rustc lints
|
|
||||||
#![warn(noop_method_call)]
|
|
||||||
#![warn(single_use_lifetimes)]
|
|
||||||
// Clippy lints
|
|
||||||
#![warn(clippy::use_self)]
|
|
||||||
|
|
||||||
// TODO Enable warn(unreachable_pub)?
|
// TODO Enable warn(unreachable_pub)?
|
||||||
// TODO Remove unnecessary Debug impls and compare compile times
|
// TODO Remove unnecessary Debug impls and compare compile times
|
||||||
// TODO Time zones other than UTC
|
// TODO Time zones other than UTC
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue