Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_app/Cargo.toml
6592 views
1
[package]
2
name = "bevy_app"
3
version = "0.17.0-dev"
4
edition = "2024"
5
description = "Provides core App functionality for Bevy Engine"
6
homepage = "https://bevy.org"
7
repository = "https://github.com/bevyengine/bevy"
8
license = "MIT OR Apache-2.0"
9
keywords = ["bevy"]
10
11
[features]
12
default = ["std", "bevy_reflect", "bevy_ecs/default", "error_panic_hook"]
13
14
# Functionality
15
16
## Adds runtime reflection support using `bevy_reflect`.
17
bevy_reflect = ["dep:bevy_reflect", "bevy_ecs/bevy_reflect"]
18
19
## Extends reflection support to functions.
20
reflect_functions = [
21
"bevy_reflect",
22
"bevy_reflect/functions",
23
"bevy_ecs/reflect_functions",
24
]
25
reflect_auto_register = [
26
"bevy_reflect",
27
"bevy_reflect/auto_register",
28
"bevy_ecs/reflect_auto_register",
29
]
30
31
# Debugging Features
32
33
## Enables `tracing` integration, allowing spans and other metrics to be reported
34
## through that framework.
35
trace = ["dep:tracing"]
36
37
## Provides system stepping support, allowing them to be paused, stepped, and
38
## other debug operations which can help with diagnosing certain behaviors.
39
bevy_debug_stepping = []
40
41
## Will set the BevyError panic hook, which gives cleaner filtered backtraces when
42
## a BevyError is hit.
43
error_panic_hook = []
44
45
# Platform Compatibility
46
47
## Allows access to the `std` crate. Enabling this feature will prevent compilation
48
## on `no_std` targets, but provides access to certain additional features on
49
## supported platforms.
50
std = [
51
"bevy_reflect?/std",
52
"bevy_ecs/std",
53
"dep:ctrlc",
54
"downcast-rs/std",
55
"bevy_platform/std",
56
]
57
58
## `critical-section` provides the building blocks for synchronization primitives
59
## on all platforms, including `no_std`.
60
critical-section = [
61
"bevy_ecs/critical-section",
62
"bevy_platform/critical-section",
63
"bevy_reflect?/critical-section",
64
]
65
66
## Enables use of browser APIs.
67
## Note this is currently only applicable on `wasm32` architectures.
68
web = [
69
"bevy_platform/web",
70
"bevy_reflect?/web",
71
"dep:wasm-bindgen",
72
"dep:web-sys",
73
"dep:console_error_panic_hook",
74
]
75
76
hotpatching = [
77
"bevy_ecs/hotpatching",
78
"dep:dioxus-devtools",
79
"dep:crossbeam-channel",
80
]
81
82
[dependencies]
83
# bevy
84
bevy_derive = { path = "../bevy_derive", version = "0.17.0-dev" }
85
bevy_ecs = { path = "../bevy_ecs", version = "0.17.0-dev", default-features = false }
86
bevy_reflect = { path = "../bevy_reflect", version = "0.17.0-dev", default-features = false, optional = true }
87
bevy_utils = { path = "../bevy_utils", version = "0.17.0-dev", default-features = false }
88
bevy_tasks = { path = "../bevy_tasks", version = "0.17.0-dev", default-features = false }
89
bevy_platform = { path = "../bevy_platform", version = "0.17.0-dev", default-features = false }
90
91
# other
92
downcast-rs = { version = "2", default-features = false }
93
thiserror = { version = "2", default-features = false }
94
variadics_please = "1.1"
95
tracing = { version = "0.1", default-features = false, optional = true }
96
log = { version = "0.4", default-features = false }
97
cfg-if = "1.0.0"
98
dioxus-devtools = { version = "0.7.0-alpha.1", optional = true }
99
crossbeam-channel = { version = "0.5.0", optional = true }
100
101
[target.'cfg(any(all(unix, not(target_os = "horizon")), windows))'.dependencies]
102
ctrlc = { version = "3.4.4", optional = true }
103
104
[target.'cfg(target_arch = "wasm32")'.dependencies]
105
wasm-bindgen = { version = "0.2", optional = true }
106
web-sys = { version = "0.3", features = ["Window"], optional = true }
107
console_error_panic_hook = { version = "0.1.6", optional = true }
108
109
[dev-dependencies]
110
crossbeam-channel = "0.5.0"
111
112
[lints]
113
workspace = true
114
115
[package.metadata.docs.rs]
116
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
117
all-features = true
118
119