Skip to content

Add no_std support#877

Open
AverageHelper wants to merge 3 commits intomathematic-inc:mainfrom
AverageHelper:avg/no_std
Open

Add no_std support#877
AverageHelper wants to merge 3 commits intomathematic-inc:mainfrom
AverageHelper:avg/no_std

Conversation

@AverageHelper
Copy link
Copy Markdown

I'm trying to use this crate in a no_std package, but its references to std are a holdback. Since this crate seems to only depend on things re-exported from core and alloc, those references can be replaced without change in functionality, while enabling the use of this crate in constrained environments.

I tested these changes locally in another crate, and compiled against a target which does not have access to std. The unit tests all pass, so hopefully this is all good! I also added a CI check to ensure no_std support going forward.

Apologies in advance for the slight added maintenance burden ^^;

@AverageHelper AverageHelper marked this pull request as ready for review March 23, 2026 07:50
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.

1 participant