From 154a718957fdad44805243c07f782625da3541a6 Mon Sep 17 00:00:00 2001 From: Krasimir Georgiev Date: Mon, 18 Mar 2024 16:43:29 +0000 Subject: [PATCH] don't bring in the `fastcpy_unsafe` module when with `safe-*` features No functional changes intended. This makes it build successfully in an environment with `--deny=unsafe_code`, e.g.: ``` RUSTFLAGS=--deny=unsafe_code cargo build ``` --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 103cd7e..b9de71e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -88,6 +88,8 @@ pub mod frame; #[allow(dead_code)] mod fastcpy; + +#[cfg(not(all(feature = "safe-encode", feature = "safe-decode")))] #[allow(dead_code)] mod fastcpy_unsafe;