Jondolf / avian

ECS-driven 2D and 3D physics engine for the Bevy game engine.
https://crates.io/crates/avian3d
Apache License 2.0
1.55k stars 120 forks source link

Use `core` and `alloc` over `std` #524

Open Jondolf opened 2 months ago

Jondolf commented 2 months ago

As https://github.com/bevyengine/bevy/pull/15281 is getting merged, we should also explore making Avian less dependent on std. This could make it work on less common platforms such as the Nintendo Switch and likely many other consoles, as well as retro devices.

We should try to rely only on core and alloc where possible. To enforce this, we could add the following lints, like in https://github.com/bevyengine/bevy/pull/15281:

This would be an important step towards no_std support.

I have not yet investigated how challenging this would be to implement or what blockers we may have, but I am opening this to track progress.