bevy/crates/bevy_reflect/derive/Cargo.toml
2025-07-16 22:16:22 +00:00

48 lines
1.6 KiB
TOML

[package]
name = "bevy_reflect_derive"
version = "0.17.0-dev"
edition = "2024"
description = "Derive implementations for bevy_reflect"
homepage = "https://bevy.org"
repository = "https://github.com/bevyengine/bevy"
license = "MIT OR Apache-2.0"
keywords = ["bevy"]
[lib]
proc-macro = true
[features]
default = []
# When enabled, allows documentation comments to be processed by the reflection macros
documentation = []
# Enables macro logic related to function reflection
functions = []
# Enables automatic reflect registration. Does nothing by itself,
# must select `auto_register_inventory` or `auto_register_static` to make it work.
auto_register = []
# Enables automatic reflection using inventory. Not supported on all platforms.
auto_register_inventory = ["auto_register"]
# Enables automatic reflection on platforms not supported by inventory. See `load_type_registrations` for more info.
auto_register_static = ["auto_register", "dep:uuid"]
[dependencies]
bevy_macro_utils = { path = "../../bevy_macro_utils", version = "0.17.0-dev" }
indexmap = "2.0"
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "2.0", features = ["full", "extra-traits"] }
uuid = { version = "1.13.1", default-features = false, features = [
"v4",
], optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
# TODO: Assuming all wasm builds are for the browser. Require `no_std` support to break assumption.
uuid = { version = "1.13.1", default-features = false, features = ["js"] }
[lints]
workspace = true
[package.metadata.docs.rs]
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
all-features = true