Skip to content

Conversation

@Jondolf
Copy link
Owner

@Jondolf Jondolf commented Mar 22, 2025

Objective

It can be easy to accidentally break no_std compatibility. We should check it in CI!

We're also missing some f32 method lints in clippy.toml, and are still actually using std::f32::round in one place.

Solution

Add no_std checks to CI, and add the remaining f32 method lints to clippy.toml. Through this I also discovered that we need a critical-section feature for Bevy in some no_std environments.

The check is based on no_std library example.

@Jondolf Jondolf merged commit 6a7a471 into main Mar 22, 2025
8 checks passed
@Jondolf Jondolf deleted the fix-no-std branch March 22, 2025 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants