Skip to content

Use core and alloc over std #524

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Jondolf opened this issue Sep 26, 2024 · 0 comments
Open

Use core and alloc over std #524

Jondolf opened this issue Sep 26, 2024 · 0 comments
Labels
C-Enhancement New feature or request

Comments

@Jondolf
Copy link
Owner

Jondolf commented Sep 26, 2024

As bevyengine/bevy#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 bevyengine/bevy#15281:

  • std_instead_of_core
  • std_instead_of_alloc
  • alloc_instead_of_core

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.

@Jondolf Jondolf added the C-Enhancement New feature or request label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant