Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_dev_tools/src/lib.rs
6595 views
1
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
2
#![forbid(unsafe_code)]
3
#![doc(
4
html_logo_url = "https://bevy.org/assets/icon.png",
5
html_favicon_url = "https://bevy.org/assets/icon.png"
6
)]
7
8
//! This crate provides additional utilities for the [Bevy game engine](https://bevy.org),
9
//! focused on improving developer experience.
10
11
use bevy_app::prelude::*;
12
13
#[cfg(feature = "bevy_ci_testing")]
14
pub mod ci_testing;
15
16
pub mod fps_overlay;
17
pub mod frame_time_graph;
18
19
pub mod picking_debug;
20
21
pub mod states;
22
23
/// Enables developer tools in an [`App`]. This plugin is added automatically with `bevy_dev_tools`
24
/// feature.
25
///
26
/// Warning: It is not recommended to enable this in final shipped games or applications.
27
/// Dev tools provide a high level of access to the internals of your application,
28
/// and may interfere with ordinary use and gameplay.
29
///
30
/// To enable developer tools, you can either:
31
///
32
/// - Create a custom crate feature (e.g "`dev_mode`"), which enables the `bevy_dev_tools` feature
33
/// along with any other development tools you might be using:
34
///
35
/// ```toml
36
/// [feature]
37
/// dev_mode = ["bevy/bevy_dev_tools", "other_dev_tools"]
38
/// ```
39
///
40
/// - Use `--feature bevy/bevy_dev_tools` flag when using the `cargo run` command:
41
///
42
/// `cargo run --features bevy/bevy_dev_tools`
43
///
44
/// - Add the `bevy_dev_tools` feature to the bevy dependency in your `Cargo.toml` file:
45
///
46
/// `features = ["bevy_dev_tools"]`
47
///
48
/// Note: The third method is not recommended, as it requires you to remove the feature before
49
/// creating a build for release to the public.
50
#[derive(Default)]
51
pub struct DevToolsPlugin;
52
53
impl Plugin for DevToolsPlugin {
54
fn build(&self, _app: &mut App) {}
55
}
56
57