Skip to content

Commit e971cb6

Browse files
Rust wrapper: avoid warning when neither blake2b nor blake2s is enabled
1 parent 0a834be commit e971cb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wrapper/rust/wolfssl-wolfcrypt/src/blake2.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ This module provides a Rust wrapper for the wolfCrypt library's BLAKE2
2323
functionality.
2424
*/
2525

26+
#![cfg(any(blake2b, blake2s))]
27+
2628
use crate::sys;
2729
use std::mem::MaybeUninit;
2830

0 commit comments

Comments
 (0)