variants_macros/
lib.rs

1/*
2    appellation: variants-macros <library>
3    authors: @FL03
4*/
5//! Procedural macros supporting the `variants` crate
6
7#![allow(
8    clippy::missing_safety_doc,
9    clippy::module_inception,
10    clippy::needless_doctest_main,
11    clippy::upper_case_acronyms
12)]
13#![cfg_attr(not(feature = "std"), no_std)]
14
15#[cfg(feature = "alloc")]
16extern crate alloc;
17
18#[cfg(not(any(feature = "std", feature = "alloc")))]
19compile_error! {
20    "Either feature `std` or `alloc` must be enabled"
21}
22