Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_input/Cargo.toml
9366 views
1
[package]
2
name = "bevy_input"
3
version = "0.19.0-dev"
4
edition = "2024"
5
description = "Provides input 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/async_executor", "smol_str"]
13
14
# Functionality
15
16
## Input sources
17
mouse = []
18
keyboard = []
19
gamepad = []
20
touch = []
21
gestures = []
22
23
## Adds runtime reflection support using `bevy_reflect`.
24
bevy_reflect = [
25
"dep:bevy_reflect",
26
"bevy_app/bevy_reflect",
27
"bevy_ecs/bevy_reflect",
28
"bevy_math/bevy_reflect",
29
]
30
31
## Adds serialization support through `serde`.
32
serialize = [
33
"serde",
34
"smol_str?/serde",
35
"bevy_ecs/serialize",
36
"bevy_math/serialize",
37
"bevy_platform/serialize",
38
]
39
40
## Uses the small-string optimization provided by `smol_str`.
41
smol_str = ["dep:smol_str", "bevy_reflect/smol_str"]
42
43
# Platform Compatibility
44
45
## Allows access to the `std` crate. Enabling this feature will prevent compilation
46
## on `no_std` targets, but provides access to certain additional features on
47
## supported platforms.
48
std = [
49
"bevy_app/std",
50
"bevy_ecs/std",
51
"bevy_math/std",
52
"bevy_reflect/std",
53
"bevy_platform/std",
54
]
55
56
## `critical-section` provides the building blocks for synchronization primitives
57
## on all platforms, including `no_std`.
58
critical-section = [
59
"bevy_app/critical-section",
60
"bevy_ecs/critical-section",
61
"bevy_reflect?/critical-section",
62
"bevy_platform/critical-section",
63
]
64
65
## Uses the `libm` maths library instead of the one provided in `std` and `core`.
66
libm = ["bevy_math/libm"]
67
68
[dependencies]
69
# bevy
70
bevy_app = { path = "../bevy_app", version = "0.19.0-dev", default-features = false }
71
bevy_ecs = { path = "../bevy_ecs", version = "0.19.0-dev", default-features = false }
72
bevy_math = { path = "../bevy_math", version = "0.19.0-dev", default-features = false }
73
bevy_reflect = { path = "../bevy_reflect", version = "0.19.0-dev", features = [
74
"glam",
75
], default-features = false, optional = true }
76
bevy_platform = { path = "../bevy_platform", version = "0.19.0-dev", default-features = false }
77
78
# other
79
serde = { version = "1", features = [
80
"alloc",
81
"derive",
82
], default-features = false, optional = true }
83
thiserror = { version = "2", default-features = false }
84
derive_more = { version = "2", default-features = false, features = ["from"] }
85
smol_str = { version = "0.2", default-features = false, optional = true }
86
log = { version = "0.4", default-features = false }
87
88
[lints]
89
workspace = true
90
91
[package.metadata.docs.rs]
92
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
93
all-features = true
94
95