Support alloc-backed APIs in no_std - #403
Open
day01 wants to merge 2 commits into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #403 +/- ##
=======================================
Coverage 94.82% 94.82%
=======================================
Files 61 61
Lines 13539 13539
=======================================
Hits 12838 12838
Misses 701 701 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
day01
force-pushed
the
feat/no-std-alloc-categorical
branch
from
July 20, 2026 07:59
4407476 to
d7a0177
Compare
Contributor
|
think moving toward libm might be nice, there wasn't much in the way of standardization of special functions, and it's a good target for shared development. |
Contributor
Author
|
@YeungOnion Would you mind opening a follow-up issue outlining which functions you think should move to or be shared with It would be useful to distinguish the existing overlap ;] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
This PR continues the work from #400 by extending
no_stdsupport to APIs that require heap allocation.Types such as
VecandBTreeMapare provided by Rust'salloccrate and do not inherently requirestd. Usingallocallows these APIs to work inno_std.Changes
stdtoallocCategorical,Empirical,log_spaced, ranks, and statistical tests available inno_stdnalgebrausing itsallocandlibmsupportno_stdapplicationsrand,nalgebra, andnalgebra,randKDE cannot be migrated because its
kdtreedependency requiresstd.Verification
executable
no_stdcalculations onwasm32-unknown-unknown