Skip to content

Commit

Permalink
build: move lints to Cargo.toml
Browse files Browse the repository at this point in the history
Signed-off-by: Saurav Sharma <[email protected]>
  • Loading branch information
iamsauravsharma committed Nov 18, 2023
1 parent e4dc357 commit 92f4929
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,13 @@ required-features = ["mysql", "cli"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unused_crate_dependencies = "warn"
unsafe_code = "deny"

[lints.clippy]
all = "deny"
pedantic = "warn"
1 change: 1 addition & 0 deletions examples/mysql/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Example crate for mysql
use sqlx_migrator::migrator::{Info, Migrator};
use sqlx_migrator::sqlx::MySql;

Expand Down
1 change: 1 addition & 0 deletions examples/postgres/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Example crate for postgres
use sqlx_migrator::migrator::{Info, Migrator};
use sqlx_migrator::sqlx::Postgres;

Expand Down
1 change: 1 addition & 0 deletions examples/sqlite/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Example crate for sqlite
use sqlx_migrator::migrator::{Info, Migrator};
use sqlx_migrator::sqlx::Sqlite;

Expand Down
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#![warn(missing_docs, unreachable_pub, unused_crate_dependencies)]
#![deny(unsafe_code)]
#![deny(clippy::all)]
#![warn(clippy::pedantic)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

//! Library to create sqlx migration using rust code instead of sql. Visit
Expand Down

0 comments on commit 92f4929

Please sign in to comment.