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