ladata/
lib.rs

1// ladata::lib
2//
3#![doc = include_str!("./Lib.md")]
4//
5
6// warnings
7#![warn(clippy::all)]
8#![allow(non_snake_case, non_camel_case_types, clippy::module_inception)]
9#![allow(unused_attributes, unused_doc_comments)] // needed in libera
10// environment
11#![cfg_attr(not(feature = "std"), no_std)]
12#![cfg_attr(feature = "safe", forbid(unsafe_code))]
13#![cfg_attr(feature = "nightly", feature(doc_cfg))]
14#[cfg(feature = "alloc")]
15extern crate alloc;
16
17// safeguards
18#[cfg(all(feature = "std", feature = "no-std"))]
19compile_error!("You can't enable the `std` and `no-std` features at the same time.");
20#[cfg(all(
21    feature = "safe",
22    any(
23        feature = "unsafe",
24        feature = "unsafe_constructors",
25        feature = "unsafe_unit",
26    )
27))]
28compile_error!("You can't enable the `safe` and `unsafe*` features at the same time.");
29// deprecated
30devela::deprecate_feature![old: "no-std", new: "no_std", since: "0.0.29"];
31
32pub mod error;
33pub mod grid;
34pub mod list;
35// pub mod hybrid;
36// pub mod key;
37pub mod mem;
38pub mod misc;
39// pub mod tree;
40pub mod unit;
41
42/// All items are reexported here.
43pub mod all {
44    #[doc(inline)]
45    pub use super::{error::*, grid::*, list::all::*, mem::all::*, misc::*, unit::all::*};
46}