1#![forbid(unsafe_code)]
2
3mod alloc;
4mod any;
5mod database;
6mod ent;
7pub mod global;
8
9pub use alloc::{Id, IdAllocator, EPHEMERAL_ID};
10pub use any::*;
11pub use database::*;
12pub use ent::*;
13
14#[cfg(feature = "macros")]
15pub use entity_macros::*;
16
17pub mod vendor {
19 pub mod macros {
21 pub mod serde {
23 #[inline]
26 pub const fn exists() -> bool {
27 cfg!(feature = "serde-1")
28 }
29
30 #[cfg(feature = "serde-1")]
31 pub use ::serde::Serialize;
32
33 #[cfg(feature = "serde-1")]
34 pub use ::serde::Deserialize;
35
36 #[cfg(not(feature = "serde-1"))]
37 pub use ::entity_noop_macros::NoopDeriveSerde as Serialize;
38
39 #[cfg(not(feature = "serde-1"))]
40 pub use ::entity_noop_macros::NoopDeriveSerde as Deserialize;
41 }
42
43 pub mod typetag {
45 #[inline]
48 pub const fn exists() -> bool {
49 cfg!(feature = "typetag")
50 }
51
52 #[cfg(feature = "typetag")]
53 pub use ::typetag::serde;
54
55 #[cfg(not(feature = "typetag"))]
56 pub use ::entity_noop_macros::noop_attr as serde;
57 }
58 }
59}