light_magic/
lib.rs

1#![doc = include_str!("../README.md")]
2#![allow(clippy::needless_doctest_main)]
3
4// If neither `atomic` nor `encrypted` (which implies atomic) is enabled, fail fast.
5#[cfg(all(not(feature = "atomic"), not(feature = "encrypted"),))]
6compile_error!(
7    "light-magic requires the `atomic` feature (or `encrypted`, which enables `atomic`). \
8     Enable with: `features = [\"atomic\"]` or `--features atomic`."
9);
10
11#[cfg(feature = "atomic")]
12pub use paste;
13#[cfg(feature = "atomic")]
14pub use serde;
15
16#[cfg(feature = "atomic")]
17pub mod atomic;
18#[cfg(feature = "atomic")]
19pub mod macros;
20#[cfg(feature = "atomic")]
21pub mod table;
22
23#[cfg(feature = "encrypted")]
24pub mod encrypted;