aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/lib.rs
blob: e1c188fc7a78ba12fc0d37c7863faf8914a2a10c (plain) (blame)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//! Mingling Core
//!
//! # Intro
//! This crate is the core implementation of `mingling`, containing the complete logic for command dispatching, execution, and rendering.
//!
//! # Note
//! It is not recommended to use [mingling_core](https://crates.io/crates/mingling_core) directly, as this will lose the code generation functionality of [mingling_macros](https://crates.io/crates/mingling_macros).
//!
//! Recommended to import [mingling](https://crates.io/crates/mingling) to use its features.

mod any;
mod asset;
mod program;
mod renderer;

mod tester;

/// Provides a toolkit for `Mingling` testing capabilities.
pub mod test {
    pub use crate::tester::*;
}

#[cfg(feature = "general_renderer")]
pub use crate::renderer::general::GeneralRenderer;

pub use crate::any::group::*;
pub use crate::any::*;

pub use crate::asset::chain::*;
pub use crate::asset::dispatcher::*;
pub use crate::asset::enum_tag::*;
pub use crate::asset::global_resource::*;
pub use crate::asset::help::*;
pub use crate::asset::node::*;
pub use crate::asset::renderer::*;

/// All error types of `Mingling`
pub mod error {
    pub use crate::asset::chain::error::*;
    pub use crate::exec::error::*;
    #[cfg(feature = "general_renderer")]
    pub use crate::renderer::general::error::*;
}

pub use crate::program::*;

pub use crate::renderer::render_result::*;

/// `Mingling`'s Program initialization system
pub mod setup {
    pub use crate::program::setup::*;
}

#[cfg(feature = "builds")]
#[doc(hidden)]
pub mod builds;

/// Provides build scripts for users
#[cfg(feature = "builds")]
pub mod build {
    #[cfg(feature = "comp")]
    pub use crate::builds::comp::*;
}

/// Provided for framework developers
pub mod debug;

#[cfg(feature = "comp")]
#[doc(hidden)]
pub mod comp;

#[cfg(feature = "comp")]
pub use crate::comp::*;

pub use crate::setup::exit_code_control::current_exit_code;
pub use crate::setup::exit_code_control::update_exit_code;