mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
faf3c175b8
# Objective Allow use of `bevy_core` types without needing `bevy_reflect`. ## Solution Make `bevy_reflect` within `bevy_core` optional. It's compiled in by default. Turn on reflect in dependencies as well when this feature is on. ## Testing - Did you test these changes? If so, how? I did a `cargo hack -p bevy_core--each-feature build`. Similar PR: https://github.com/bevyengine/bevy/pull/14167 Discord context starts here: https://discord.com/channels/691052431525675048/768253008416342076/1258814534651482163 Signed-off-by: Torstein Grindvik <torstein.grindvik@muybridge.com> Co-authored-by: Torstein Grindvik <torstein.grindvik@muybridge.com>
43 lines
1.1 KiB
TOML
43 lines
1.1 KiB
TOML
[package]
|
|
name = "bevy_core"
|
|
version = "0.14.0-dev"
|
|
edition = "2021"
|
|
description = "Provides core functionality for Bevy Engine"
|
|
homepage = "https://bevyengine.org"
|
|
repository = "https://github.com/bevyengine/bevy"
|
|
license = "MIT OR Apache-2.0"
|
|
keywords = ["bevy"]
|
|
|
|
[dependencies]
|
|
# bevy
|
|
bevy_app = { path = "../bevy_app", version = "0.14.0-dev", default-features = false }
|
|
bevy_ecs = { path = "../bevy_ecs", version = "0.14.0-dev", default-features = false }
|
|
bevy_reflect = { path = "../bevy_reflect", version = "0.14.0-dev", features = [
|
|
"bevy",
|
|
], optional = true }
|
|
bevy_tasks = { path = "../bevy_tasks", version = "0.14.0-dev" }
|
|
bevy_utils = { path = "../bevy_utils", version = "0.14.0-dev" }
|
|
|
|
# other
|
|
serde = { version = "1.0", optional = true }
|
|
uuid = "1.0"
|
|
|
|
[features]
|
|
default = ["bevy_reflect"]
|
|
bevy_reflect = [
|
|
"dep:bevy_reflect",
|
|
"bevy_app/bevy_reflect",
|
|
"bevy_ecs/bevy_reflect",
|
|
]
|
|
serialize = ["dep:serde"]
|
|
|
|
[dev-dependencies]
|
|
crossbeam-channel = "0.5.0"
|
|
serde_test = "1.0"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[package.metadata.docs.rs]
|
|
rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"]
|
|
all-features = true
|