bevy/crates/bevy_input/Cargo.toml
Torstein Grindvik 1bc5ecda9b
bevy_input: allow use without bevy_reflect (#14167)
Allow use of `bevy_input` types without needing `bevy_reflect`.

Make `bevy_reflect` within `bevy_input` optional. It's compiled in by
default.
Turn on reflect in dependencies as well when this feature is on.

- Did you test these changes? If so, how?

I did a `cargo hack -p bevy_input --each-feature build`.

Signed-off-by: Torstein Grindvik <torstein.grindvik@muybridge.com>
Co-authored-by: Torstein Grindvik <torstein.grindvik@muybridge.com>
2024-08-02 19:11:13 +02:00

48 lines
1.2 KiB
TOML

[package]
name = "bevy_input"
version = "0.14.0"
edition = "2021"
description = "Provides input functionality for Bevy Engine"
homepage = "https://bevyengine.org"
repository = "https://github.com/bevyengine/bevy"
license = "MIT OR Apache-2.0"
keywords = ["bevy"]
[features]
default = ["bevy_reflect"]
bevy_reflect = [
"dep:bevy_reflect",
"bevy_app/bevy_reflect",
"bevy_ecs/bevy_reflect",
"bevy_math/bevy_reflect",
]
serialize = ["serde", "smol_str/serde"]
[dependencies]
# bevy
bevy_app = { path = "../bevy_app", version = "0.14.0", default-features = false }
bevy_ecs = { path = "../bevy_ecs", version = "0.14.0", default-features = false, features = [
"serialize",
] }
bevy_math = { path = "../bevy_math", version = "0.14.0", default-features = false, features = [
"rand",
"serialize",
] }
bevy_utils = { path = "../bevy_utils", version = "0.14.0" }
bevy_reflect = { path = "../bevy_reflect", version = "0.14.0", features = [
"glam",
"smol_str",
], optional = true }
# other
serde = { version = "1", features = ["derive"], optional = true }
thiserror = "1.0"
smol_str = "0.2"
[lints]
workspace = true
[package.metadata.docs.rs]
rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"]
all-features = true