1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#![forbid(unsafe_code)]
#![deny(missing_docs)]
#![cfg_attr(mirai, allow(incomplete_features), feature(const_generics))]
pub mod compat;
pub mod ed25519;
pub mod error;
pub mod hash;
pub mod hkdf;
pub mod multi_ed25519;
pub mod noise;
pub mod test_utils;
pub mod traits;
pub mod validatable;
pub mod x25519;
#[cfg(test)]
mod unit_tests;
#[cfg(mirai)]
mod tags;
pub use self::traits::*;
pub use hash::HashValue;
#[doc(hidden)]
pub use once_cell as _once_cell;
#[doc(hidden)]
pub use serde_name as _serde_name;
#[cfg(not(any(feature = "fiat", feature = "u64", feature = "u32")))]
compile_error!(
"no dalek arithmetic backend cargo feature enabled! \
please enable one of: fiat, u64, u32"
);
#[cfg(all(feature = "fiat", feature = "u64"))]
compile_error!(
"at most one dalek arithmetic backend cargo feature should be enabled! \
please enable exactly one of: fiat, u64, u32"
);
#[cfg(all(feature = "fiat", feature = "u32"))]
compile_error!(
"at most one dalek arithmetic backend cargo feature should be enabled! \
please enable exactly one of: fiat, u64, u32"
);
#[cfg(all(feature = "u64", feature = "u32"))]
compile_error!(
"at most one dalek arithmetic backend cargo feature should be enabled! \
please enable exactly one of: fiat, u64, u32"
);
#[cfg(all(mirai, not(debug_assertions)))]
compile_error!("MIRAI can only be used to compile the crate in a debug build!");