1#![cfg_attr(not(feature = "std"), no_std)]
8#![forbid(unsafe_code)]
9
10#[cfg(any(feature = "alloc", feature = "std"))]
11extern crate alloc;
12
13pub mod constant_time;
14pub mod endian;
15pub mod random;
16pub mod zeroing;
17
18pub use constant_time::*;
19pub use endian::*;
20pub use random::*;
21pub use zeroing::*;
22
23#[cfg(feature = "simd")]
24pub mod simd {
25 pub fn is_available() -> bool {
29 #[cfg(target_feature = "sse2")]
30 {
31 true
32 }
33
34 #[cfg(not(target_feature = "sse2"))]
35 {
36 false
37 }
38 }
39}