Skip to content

Commit

Permalink
don't bring in the fastcpy_unsafe module when with safe-* features
Browse files Browse the repository at this point in the history
No functional changes intended.

This makes it build successfully in an environment with `--deny=unsafe_code`, e.g.:
```
RUSTFLAGS=--deny=unsafe_code cargo build
```
  • Loading branch information
krasimirgg authored and PSeitz committed Mar 30, 2024
1 parent 8a8e1ad commit 154a718
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 154a718

Please sign in to comment.