alazar/
lib.rs

1// alazar::lib
2//
3//! Random number generation.
4//
5
6// warnings
7#![warn(clippy::all)]
8// environment
9#![cfg_attr(not(feature = "std"), no_std)]
10#![cfg_attr(feature = "safe", forbid(unsafe_code))]
11#![cfg_attr(feature = "nightly", feature(doc_cfg))]
12#[cfg(feature = "alloc")]
13extern crate alloc;
14
15// safeguards
16#[cfg(all(feature = "std", feature = "no_std"))]
17compile_error!("You can't enable the `std` and `no_std` features at the same time.");
18#[cfg(all(feature = "safe", feature = "unsafe"))]
19compile_error!("You can't enable the `safe` and `unsafe` features at the same time.");
20// deprecated
21devela::deprecate_feature![old: "all", new: "full", since: "0.0.2"];
22
23pub mod misc;
24pub mod xorshift;
25
26/// All items are reexported here.
27pub mod all {
28    #[doc(inline)]
29    pub use super::{misc::*, xorshift::*};
30}