diff --git a/src/aes.rs b/src/aes.rs index 721d72ae..8ef9c971 100644 --- a/src/aes.rs +++ b/src/aes.rs @@ -298,7 +298,7 @@ impl Write for AesWriter { } } -#[cfg(test)] +#[cfg(all(test, feature = "aes-crypto"))] mod tests { use std::io::{self, Read, Write};