Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_app/src/lib.rs
9356 views
1
#![cfg_attr(
2
any(docsrs, docsrs_dep),
3
expect(
4
internal_features,
5
reason = "rustdoc_internals is needed for fake_variadic"
6
)
7
)]
8
#![cfg_attr(any(docsrs, docsrs_dep), feature(doc_cfg, rustdoc_internals))]
9
#![forbid(unsafe_code)]
10
#![doc(
11
html_logo_url = "https://bevy.org/assets/icon.png",
12
html_favicon_url = "https://bevy.org/assets/icon.png"
13
)]
14
#![no_std]
15
16
//! This crate is about everything concerning the highest-level, application layer of a Bevy app.
17
18
#[cfg(feature = "std")]
19
extern crate std;
20
21
extern crate alloc;
22
23
// Required to make proc macros work in bevy itself.
24
extern crate self as bevy_app;
25
26
mod app;
27
mod hierarchy;
28
mod main_schedule;
29
mod panic_handler;
30
mod plugin;
31
mod plugin_group;
32
mod propagate;
33
mod schedule_runner;
34
mod sub_app;
35
mod task_pool_plugin;
36
#[cfg(all(any(all(unix, not(target_os = "horizon")), windows), feature = "std"))]
37
mod terminal_ctrl_c_handler;
38
39
#[cfg(feature = "hotpatching")]
40
pub mod hotpatch;
41
42
pub use app::*;
43
pub use hierarchy::*;
44
pub use main_schedule::*;
45
pub use panic_handler::*;
46
pub use plugin::*;
47
pub use plugin_group::*;
48
pub use propagate::*;
49
pub use schedule_runner::*;
50
pub use sub_app::*;
51
pub use task_pool_plugin::*;
52
#[cfg(all(any(all(unix, not(target_os = "horizon")), windows), feature = "std"))]
53
pub use terminal_ctrl_c_handler::*;
54
55
/// The app prelude.
56
///
57
/// This includes the most common types in this crate, re-exported for your convenience.
58
pub mod prelude {
59
#[doc(hidden)]
60
pub use crate::{
61
app::{App, AppExit},
62
main_schedule::{
63
First, FixedFirst, FixedLast, FixedPostUpdate, FixedPreUpdate, FixedUpdate, Last, Main,
64
PostStartup, PostUpdate, PreStartup, PreUpdate, RunFixedMainLoop,
65
RunFixedMainLoopSystems, SpawnScene, Startup, Update,
66
},
67
sub_app::SubApp,
68
Plugin, PluginGroup, TaskPoolOptions, TaskPoolPlugin,
69
};
70
}
71
72