diff --git a/Cargo.toml b/Cargo.toml index 508ec92..4de2e28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,13 @@ edition = "2021" [lib] path = "source/lib.rs" +[lints.clippy] +missing_docs_in_private_items = "warn" + +[lints.rust] +missing_docs = "warn" +unsafe_code = "forbid" + [dependencies] byteorder = "1.5.0" serde = { version = "1.0.196", features = ["derive"] } diff --git a/source/lib.rs b/source/lib.rs index 17bf190..7ceb351 100644 --- a/source/lib.rs +++ b/source/lib.rs @@ -1,6 +1,3 @@ -#![forbid(unsafe_code)] -#![warn(missing_docs, clippy::missing_docs_in_private_items)] - //! # WebExtension Native Messaging //! //! > **WebExtension native messaging library for Rust.**