Skip to content

Commit

Permalink
Move lints to Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
TehPers committed Nov 26, 2024
1 parent eafc9fb commit 86d1ded
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
30 changes: 23 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@ name = "expecters"
version = "0.1.0"
edition = "2021"
license = "MIT OR Apache-2.0"
categories = [
"asynchronous",
"development-tools",
"development-tools::debugging",
"development-tools::testing",
]
categories = ["asynchronous", "development-tools", "development-tools::testing"]
keywords = ["assert", "assertions", "async", "matchers", "testing"]
rust-version = "1.80.1"
publish = false # TODO: remove this when ready to publish
# TODO: remove this when ready to publish
publish = false

[features]
default = ["colors", "diff", "futures", "regex"]
Expand All @@ -35,3 +31,23 @@ regex = { version = "1.10.6", optional = true }
[dev-dependencies]
test-case = "3.3.1"
tokio = { version = "1", features = ["macros", "test-util"] }

[lints.rust]
unsafe_code = "forbid"

missing_debug_implementations = "warn"
missing_docs = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_qualifications = "warn"
unused_results = "warn"

[lints.clippy]
all = "warn"
pedantic = "warn"
style = "warn"

missing_errors_doc = "allow"
module_name_repetitions = "allow"
15 changes: 0 additions & 15 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,6 @@
//! [regex](https://crates.io/crates/regex) to execute them.
//! - `colors`*: Enables styled failure messages. Styled messages can always be
//! disabled by setting `NO_COLOR`.
#![warn(
missing_debug_implementations,
missing_docs,
trivial_casts,
trivial_numeric_casts,
unused_extern_crates,
unused_import_braces,
unused_qualifications,
unused_results,
clippy::all,
clippy::pedantic,
clippy::style
)]
#![allow(clippy::missing_errors_doc, clippy::module_name_repetitions)]
#![forbid(unsafe_code)]
pub mod assertions;
pub mod metadata;
Expand Down

0 comments on commit 86d1ded

Please sign in to comment.