bevy/crates/bevy_math/src
François Mockers 4fe57767fc
make bevy math publishable (#17727)
# Objective

- bevy_math fails to publish because of the self dev-dependency
- it's used to enable the `approx` feature in tests

## Solution

- Don't specify a version in the dev-dependency. dependencies without a
version are ignored by cargo when publishing
- Gate all the tests that depend on the `approx` feature so that it
doesn't fail to compile when not enabled
- Also gate an import that wasn't used without `bevy_reflect`

## Testing

- with at least cargo 1.84: `cargo package -p bevy_math`
- `cd target/package/bevy_math_* && cargo test`
2025-02-10 22:15:53 +00:00
..
bounding Reworked Segment types into their cartesian forms (#17404) 2025-01-19 03:54:45 +00:00
cubic_splines Remove Implicit std Prelude from no_std Crates (#17086) 2025-01-03 01:58:43 +00:00
curve make bevy math publishable (#17727) 2025-02-10 22:15:53 +00:00
primitives Reworked Segment types into their cartesian forms (#17404) 2025-01-19 03:54:45 +00:00
rects
sampling Prefer Display over Debug (#16112) 2024-12-27 00:40:06 +00:00
affine3.rs
aspect_ratio.rs Deny derive_more error feature and replace it with thiserror (#16684) 2024-12-06 17:03:55 +00:00
common_traits.rs Use variadics_please to implement StableInterpolate on tuples. (#16931) 2024-12-24 02:53:43 +00:00
compass.rs Add basic directional (gamepad) navigation for UI (and non-UI) (#17102) 2025-01-06 18:51:44 +00:00
direction.rs make bevy math publishable (#17727) 2025-02-10 22:15:53 +00:00
float_ord.rs bevy_math: Apply #[deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)] (#17091) 2025-01-02 18:47:36 +00:00
isometry.rs make bevy math publishable (#17727) 2025-02-10 22:15:53 +00:00
lib.rs Move #![warn(clippy::allow_attributes, clippy::allow_attributes_without_reason)] to the workspace Cargo.toml (#17374) 2025-01-15 01:14:58 +00:00
ops.rs bevy_math: Apply #[deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)] (#17091) 2025-01-02 18:47:36 +00:00
ray.rs
rotation2d.rs make bevy math publishable (#17727) 2025-02-10 22:15:53 +00:00