bevy/crates/bevy_math/src/curve
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
..
derivatives Refactor non-core Curve methods into extension traits (#16930) 2024-12-29 19:26:49 +00:00
adaptors.rs Remove Implicit std Prelude from no_std Crates (#17086) 2025-01-03 01:58:43 +00:00
cores.rs Fix a few typos (#17292) 2025-01-10 22:48:30 +00:00
easing.rs make bevy math publishable (#17727) 2025-02-10 22:15:53 +00:00
interval.rs Remove Implicit std Prelude from no_std Crates (#17086) 2025-01-03 01:58:43 +00:00
iterable.rs Add no_std Support to bevy_math (#15810) 2024-12-03 17:14:51 +00:00
mod.rs Fix rounding in steps easing function (#17743) 2025-02-08 18:33:46 +00:00
sample_curves.rs make bevy math publishable (#17727) 2025-02-10 22:15:53 +00:00