Commit 60807eef authored by Nugine's avatar Nugine
Browse files

refactor: workspace lints

parent 7303f896
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -7,5 +7,20 @@ edition = "2024"
repository = "https://github.com/Nugine/s3s"
license = "Apache-2.0"

[workspace.lints.rust]
unsafe_code = "forbid"

[workspace.lints.clippy]
# deny
all = { level = "deny", priority = -1 }
pedantic = { level = "deny", priority = -1 }
cargo = { level = "deny", priority = -1 }
self_named_module_files = "deny"
# warn
dbg_macro = "warn"
# allow
module_name_repetitions = "allow"
multiple_crate_versions = "allow"

[profile.release]
debug = "line-tables-only"
+3 −0
Original line number Diff line number Diff line
@@ -4,6 +4,9 @@ version = "0.0.0"
edition = "2021"
publish = false

[lints]
workspace = true

[dependencies]
codegen-writer = "0.2.0"
heck = "0.5.0"
+0 −13
Original line number Diff line number Diff line
#![forbid(unsafe_code)]
#![deny(
    clippy::all, //
    clippy::pedantic, //
)]
#![warn(
    clippy::dbg_macro, //
)]
#![allow(
    clippy::single_match_else, //
    clippy::wildcard_imports,
    clippy::match_same_arms,
    clippy::let_underscore_untyped,
)]
#![allow(
    unknown_lints,
    // FIXME: https://github.com/rust-lang/rust-clippy/issues/13885
    clippy::literal_string_with_formatting_args,
)]

mod v1;
mod v2;
+3 −0
Original line number Diff line number Diff line
@@ -9,6 +9,9 @@ edition.workspace = true
repository.workspace = true
license.workspace = true

[lints]
workspace = true

[dependencies]
async-trait = "0.1.83"
aws-sdk-s3 = "1.56.0"
+0 −6
Original line number Diff line number Diff line
#![forbid(unsafe_code)]
#![deny(
    clippy::all, //
    clippy::cargo, //
    clippy::pedantic, //
)]
#![allow(
    clippy::module_name_repetitions,//
    clippy::match_same_arms, //
Loading