Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_app/src/lib.rs
6595 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_auto_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 main_schedule;
28
mod panic_handler;
29
mod plugin;
30
mod plugin_group;
31
mod propagate;
32
mod schedule_runner;
33
mod sub_app;
34
mod task_pool_plugin;
35
#[cfg(all(any(all(unix, not(target_os = "horizon")), windows), feature = "std"))]
36
mod terminal_ctrl_c_handler;
37
38
#[cfg(feature = "hotpatching")]
39
pub mod hotpatch;
40
41
pub use app::*;
42
pub use main_schedule::*;
43
pub use panic_handler::*;
44
pub use plugin::*;
45
pub use plugin_group::*;
46
pub use propagate::*;
47
pub use schedule_runner::*;
48
pub use sub_app::*;
49
pub use task_pool_plugin::*;
50
#[cfg(all(any(all(unix, not(target_os = "horizon")), windows), feature = "std"))]
51
pub use terminal_ctrl_c_handler::*;
52
53
/// The app prelude.
54
///
55
/// This includes the most common types in this crate, re-exported for your convenience.
56
pub mod prelude {
57
#[doc(hidden)]
58
pub use crate::{
59
app::{App, AppExit},
60
main_schedule::{
61
First, FixedFirst, FixedLast, FixedPostUpdate, FixedPreUpdate, FixedUpdate, Last, Main,
62
PostStartup, PostUpdate, PreStartup, PreUpdate, RunFixedMainLoop,
63
RunFixedMainLoopSystems, SpawnScene, Startup, Update,
64
},
65
sub_app::SubApp,
66
Plugin, PluginGroup, TaskPoolOptions, TaskPoolPlugin,
67
};
68
}
69
70