Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_transform/Cargo.toml
6593 views
1
[package]
2
name = "bevy_transform"
3
version = "0.17.0-dev"
4
edition = "2024"
5
description = "Provides transform 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
[dependencies]
12
# bevy
13
bevy_app = { path = "../bevy_app", version = "0.17.0-dev", default-features = false, optional = true }
14
bevy_ecs = { path = "../bevy_ecs", version = "0.17.0-dev", default-features = false, optional = true }
15
bevy_log = { path = "../bevy_log", version = "0.17.0-dev", default-features = false, optional = true }
16
bevy_math = { path = "../bevy_math", version = "0.17.0-dev", default-features = false }
17
bevy_reflect = { path = "../bevy_reflect", version = "0.17.0-dev", default-features = false, optional = true }
18
bevy_tasks = { path = "../bevy_tasks", version = "0.17.0-dev", default-features = false }
19
bevy_utils = { path = "../bevy_utils", version = "0.17.0-dev", default-features = false, optional = true }
20
serde = { version = "1", default-features = false, features = [
21
"derive",
22
], optional = true }
23
thiserror = { version = "2", default-features = false }
24
derive_more = { version = "2", default-features = false, features = ["from"] }
25
26
[dev-dependencies]
27
bevy_tasks = { path = "../bevy_tasks", version = "0.17.0-dev" }
28
bevy_math = { path = "../bevy_math", version = "0.17.0-dev", default-features = false, features = [
29
"approx",
30
] }
31
approx = "0.5.1"
32
33
[features]
34
# Turning off default features leaves you with a barebones
35
# definition of transform.
36
default = ["std", "bevy-support", "bevy_reflect", "async_executor"]
37
38
# Functionality
39
40
## Adds normal Bevy impls like deriving components, bundles, reflection, as well as adding
41
## systems for transform propagation and more.
42
## This exists because it allows opting out of all of this, leaving only a bare-bones transform struct,
43
## which enables users to depend on that without needing the larger Bevy dependency tree.
44
bevy-support = ["alloc", "dep:bevy_app", "dep:bevy_ecs"]
45
46
## Adds serialization support through `serde`.
47
serialize = ["dep:serde", "bevy_math/serialize"]
48
49
## Adds runtime reflection support using `bevy_reflect`.
50
bevy_reflect = [
51
"bevy-support",
52
"dep:bevy_reflect",
53
"bevy_math/bevy_reflect",
54
"bevy_ecs/bevy_reflect",
55
"bevy_app/bevy_reflect",
56
]
57
58
# Executor Backend
59
60
## Uses `async-executor` as a task execution backend.
61
## This backend is incompatible with `no_std` targets.
62
async_executor = ["std", "bevy_tasks/async_executor"]
63
64
# Platform Compatibility
65
66
## Allows access to the `std` crate. Enabling this feature will prevent compilation
67
## on `no_std` targets, but provides access to certain additional features on
68
## supported platforms.
69
std = [
70
"alloc",
71
"bevy_app?/std",
72
"bevy_log",
73
"bevy_ecs?/std",
74
"bevy_math/std",
75
"bevy_reflect?/std",
76
"bevy_utils/parallel",
77
"serde?/std",
78
]
79
80
## `critical-section` provides the building blocks for synchronization primitives
81
## on all platforms, including `no_std`.
82
critical-section = [
83
"bevy_app?/critical-section",
84
"bevy_ecs?/critical-section",
85
"bevy_reflect?/critical-section",
86
]
87
88
## Allows access to the `alloc` crate.
89
alloc = ["serde?/alloc"]
90
91
## Uses the `libm` maths library instead of the one provided in `std` and `core`.
92
libm = ["bevy_math/libm"]
93
94
[lints]
95
workspace = true
96
97
[package.metadata.docs.rs]
98
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
99
all-features = true
100
101