1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#![doc = include_str!("../README.md")]
#[cfg(feature = "sync")]
mod sync;
#[cfg(feature = "sync")]
pub use sync::*;

#[cfg(feature = "async")]
mod atomic;
#[cfg(feature = "async")]
pub use atomic::*;

#[cfg(feature = "derive")]
pub use autoincrement_derive::{AsyncIncremental, Incremental};

pub mod prelude {
    #[cfg(feature = "sync")]
    pub use crate::Incremental;

    #[cfg(feature = "async")]
    pub use crate::AsyncIncremental;
}