strobe_rs/lib.rs
1#![allow(clippy::needless_doctest_main)]
2#![doc = include_str!("../README.md")]
3// The doc_auto_cfg feature is only available in nightly. It auto-marks items in documentation as
4// dependent on specific features.
5#![cfg_attr(docsrs, feature(doc_auto_cfg))]
6//-------- no_std stuff --------//
7#![no_std]
8
9#[cfg(feature = "std")]
10#[macro_use]
11extern crate std;
12
13// An Error type is just something that's Debug and Display
14#[cfg(feature = "std")]
15impl std::error::Error for AuthError {}
16
17//-------- Testing stuff --------//
18#[cfg(test)]
19mod basic_tests;
20
21// kat_tests requires std
22#[cfg(all(test, feature = "std"))]
23mod kat_tests;
24
25//-------- Modules and exports--------//
26
27mod keccak;
28mod strobe;
29
30pub use crate::strobe::*;