mirror of
https://github.com/bevyengine/bevy
synced 2024-11-23 05:03:47 +00:00
0c2c52a0cd
# Objective Align all error-like types to implement `Error`. Fixes #10176 ## Solution - Derive `Error` on more types - Refactor instances of manual implementations that could be derived This adds thiserror as a dependency to bevy_transform, which might increase compilation time -- but I don't know of any situation where you might only use that but not any other crate that pulls in bevy_utils. The `contributors` example has a `LoadContributorsError` type, but as it's an example I have not updated it. Doing that would mean either having a `use bevy_internal::utils::thiserror::Error;` in an example file, or adding `thiserror` as a dev-dependency to the main `bevy` crate. --- ## Changelog - All `…Error` types now implement the `Error` trait
27 lines
967 B
TOML
27 lines
967 B
TOML
[package]
|
|
name = "bevy_transform"
|
|
version = "0.12.0-dev"
|
|
edition = "2021"
|
|
description = "Provides transform 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.12.0-dev" }
|
|
bevy_ecs = { path = "../bevy_ecs", version = "0.12.0-dev", features = ["bevy_reflect"] }
|
|
bevy_hierarchy = { path = "../bevy_hierarchy", version = "0.12.0-dev" }
|
|
bevy_math = { path = "../bevy_math", version = "0.12.0-dev" }
|
|
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0-dev", features = ["bevy"] }
|
|
serde = { version = "1", features = ["derive"], optional = true }
|
|
thiserror = "1.0"
|
|
|
|
[dev-dependencies]
|
|
bevy_tasks = { path = "../bevy_tasks", version = "0.12.0-dev" }
|
|
approx = "0.5.1"
|
|
glam = { version = "0.24", features = ["approx"] }
|
|
|
|
[features]
|
|
serialize = ["dep:serde", "bevy_math/serialize"]
|