From b7b5ff0633092006205ccfca9febab0978c0c957 Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Wed, 5 Jan 2022 19:41:40 +0100 Subject: Add `#![forbid(unsafe_code)]` to all crates except askama_escape --- askama/src/lib.rs | 1 + askama_actix/src/lib.rs | 1 + askama_axum/src/lib.rs | 1 + askama_derive/src/lib.rs | 1 + askama_gotham/src/lib.rs | 1 + askama_mendes/src/lib.rs | 1 + askama_rocket/src/lib.rs | 1 + askama_shared/src/lib.rs | 1 + askama_tide/src/lib.rs | 1 + askama_warp/src/lib.rs | 1 + 10 files changed, 10 insertions(+) diff --git a/askama/src/lib.rs b/askama/src/lib.rs index db28e8c..3c7f072 100644 --- a/askama/src/lib.rs +++ b/askama/src/lib.rs @@ -59,6 +59,7 @@ //! in the configuration file. The default syntax , "default", is the one //! provided by Askama. +#![forbid(unsafe_code)] #![deny(elided_lifetimes_in_paths)] #![deny(unreachable_pub)] diff --git a/askama_actix/src/lib.rs b/askama_actix/src/lib.rs index b4c4ac7..c4317c4 100644 --- a/askama_actix/src/lib.rs +++ b/askama_actix/src/lib.rs @@ -1,3 +1,4 @@ +#![forbid(unsafe_code)] #![deny(elided_lifetimes_in_paths)] #![deny(unreachable_pub)] diff --git a/askama_axum/src/lib.rs b/askama_axum/src/lib.rs index 725c56f..21217ff 100644 --- a/askama_axum/src/lib.rs +++ b/askama_axum/src/lib.rs @@ -1,3 +1,4 @@ +#![forbid(unsafe_code)] #![deny(elided_lifetimes_in_paths)] #![deny(unreachable_pub)] diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs index 514761a..3557267 100644 --- a/askama_derive/src/lib.rs +++ b/askama_derive/src/lib.rs @@ -1,3 +1,4 @@ +#![forbid(unsafe_code)] #![deny(elided_lifetimes_in_paths)] #![deny(unreachable_pub)] diff --git a/askama_gotham/src/lib.rs b/askama_gotham/src/lib.rs index b585148..1241c9c 100644 --- a/askama_gotham/src/lib.rs +++ b/askama_gotham/src/lib.rs @@ -1,3 +1,4 @@ +#![forbid(unsafe_code)] #![deny(elided_lifetimes_in_paths)] #![deny(unreachable_pub)] diff --git a/askama_mendes/src/lib.rs b/askama_mendes/src/lib.rs index 7315c95..baaa49f 100644 --- a/askama_mendes/src/lib.rs +++ b/askama_mendes/src/lib.rs @@ -1,3 +1,4 @@ +#![forbid(unsafe_code)] #![deny(elided_lifetimes_in_paths)] #![deny(unreachable_pub)] diff --git a/askama_rocket/src/lib.rs b/askama_rocket/src/lib.rs index 800e72f..33bd779 100644 --- a/askama_rocket/src/lib.rs +++ b/askama_rocket/src/lib.rs @@ -1,3 +1,4 @@ +#![forbid(unsafe_code)] #![deny(elided_lifetimes_in_paths)] #![deny(unreachable_pub)] diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs index ea742e2..0768ff3 100644 --- a/askama_shared/src/lib.rs +++ b/askama_shared/src/lib.rs @@ -1,4 +1,5 @@ #![cfg_attr(feature = "cargo-clippy", allow(unused_parens))] +#![forbid(unsafe_code)] #![deny(elided_lifetimes_in_paths)] #![deny(unreachable_pub)] diff --git a/askama_tide/src/lib.rs b/askama_tide/src/lib.rs index d74b759..2854cb6 100644 --- a/askama_tide/src/lib.rs +++ b/askama_tide/src/lib.rs @@ -1,3 +1,4 @@ +#![forbid(unsafe_code)] #![deny(elided_lifetimes_in_paths)] #![deny(unreachable_pub)] diff --git a/askama_warp/src/lib.rs b/askama_warp/src/lib.rs index 90bf6c6..4220efc 100644 --- a/askama_warp/src/lib.rs +++ b/askama_warp/src/lib.rs @@ -1,3 +1,4 @@ +#![forbid(unsafe_code)] #![deny(elided_lifetimes_in_paths)] #![deny(unreachable_pub)] -- cgit