1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#![cfg_attr(doctest, doc = "````no_test")]
#![doc = include_str!("../README.md")]

#[rustfmt::skip]
#[cfg(not(any(
    feature = "library",
    feature = "bincode",
    feature = "ini",
    feature = "json",
    feature = "ron",
    feature = "toml",
    feature = "yaml",
)))]
compile_error!(concat!(r#"no storage formats are selected!

    If you're not sure which formats you'll need,
    you can start with selecting all of them:

    bevy-persistent = { version = ""#, env!("CARGO_PKG_VERSION"), r#"", features = ["all"] }

"#));

pub mod builder;
pub mod error;
pub mod format;
pub mod persistent;
pub mod prelude;
pub mod storage;

pub use crate::{
    builder::PersistentBuilder,
    error::PersistenceError,
    format::StorageFormat,
    persistent::Persistent,
    storage::Storage,
};