mirror of
https://github.com/bevyengine/bevy
synced 2024-12-11 13:52:37 +00:00
d0f423d653
# Objective bevy_ecs has several compile_fail tests that assert lifetime safety. In the past, these tests have been green for the wrong reasons (see e.g. #2984). This PR makes sure, that they will fail if the compiler error changes. ## Solution Use [trybuild](https://crates.io/crates/trybuild) to assert the compiler errors. The UI tests are in a separate crate that is not part of the Bevy workspace. This is to ensure that they do not break Bevy's crater builds. The tests get executed by the CI workflow on the stable toolchain.
13 lines
383 B
TOML
13 lines
383 B
TOML
[package]
|
|
name = "bevy_ecs_compile_fail_tests"
|
|
version = "0.5.0"
|
|
edition = "2021"
|
|
description = "Compile fail tests for Bevy Engine's entity component system"
|
|
homepage = "https://bevyengine.org"
|
|
repository = "https://github.com/bevyengine/bevy"
|
|
license = "MIT OR Apache-2.0"
|
|
publish = false
|
|
|
|
[dev-dependencies]
|
|
bevy_ecs = { path = "../bevy_ecs", version = "0.5.0" }
|
|
trybuild = "1.0"
|