Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_reflect/derive/Cargo.toml
6597 views
1
[package]
2
name = "bevy_reflect_derive"
3
version = "0.17.0-dev"
4
edition = "2024"
5
description = "Derive implementations for bevy_reflect"
6
homepage = "https://bevy.org"
7
repository = "https://github.com/bevyengine/bevy"
8
license = "MIT OR Apache-2.0"
9
keywords = ["bevy"]
10
11
[lib]
12
proc-macro = true
13
14
[features]
15
default = []
16
# When enabled, allows documentation comments to be processed by the reflection macros
17
documentation = []
18
# Enables macro logic related to function reflection
19
functions = []
20
# Enables automatic reflect registration. Does nothing by itself,
21
# must select `auto_register_inventory` or `auto_register_static` to make it work.
22
auto_register = []
23
# Enables automatic reflection using inventory. Not supported on all platforms.
24
auto_register_inventory = ["auto_register"]
25
# Enables automatic reflection on platforms not supported by inventory. See `load_type_registrations` for more info.
26
auto_register_static = ["auto_register", "dep:uuid"]
27
28
[dependencies]
29
bevy_macro_utils = { path = "../../bevy_macro_utils", version = "0.17.0-dev" }
30
indexmap = "2.0"
31
proc-macro2 = "1.0"
32
quote = "1.0"
33
syn = { version = "2.0", features = ["full", "extra-traits"] }
34
uuid = { version = "1.13.1", default-features = false, features = [
35
"v4",
36
], optional = true }
37
38
[target.'cfg(target_arch = "wasm32")'.dependencies]
39
# TODO: Assuming all wasm builds are for the browser. Require `no_std` support to break assumption.
40
uuid = { version = "1.13.1", default-features = false, features = ["js"] }
41
42
[lints]
43
workspace = true
44
45
[package.metadata.docs.rs]
46
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
47
all-features = true
48
49