Skip to content

Add browser WASM feature support - #438

Merged
relf merged 1 commit into
rust-ml:masterfrom
LucaCappelletti94:master
May 13, 2026
Merged

Add browser WASM feature support#438
relf merged 1 commit into
rust-ml:masterfrom
LucaCappelletti94:master

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

I want to use this crate as part of dioxus web apps in my lab, so I added the few things needed to make it compile in WASM settings. I have also added a CI job to verify that indeed it does compile in WASM.

@codecov

codecov Bot commented Apr 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.54%. Comparing base (99d8afd) to head (393fa78).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #438   +/-   ##
=======================================
  Coverage   77.54%   77.54%           
=======================================
  Files         106      106           
  Lines        7579     7579           
=======================================
  Hits         5877     5877           
  Misses       1702     1702           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@relf relf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution. Could you rebase on current master where lint errors have been fixed now?

@relf
relf merged commit 793a8a8 into rust-ml:master May 13, 2026
22 checks passed
jagan-nuvai added a commit to Nuvai/linfa that referenced this pull request Jul 14, 2026
Pulls in:
  - e69cd94 linting
  - 8167a62 fix docs action
  - 99d8afd Hamerly accelerated K-means (rust-ml#439)
  - 793a8a8 WASM feature support (rust-ml#438)
  - ad45826 remove debug trace
  - 60382a3 Wasserstein distance / Earth Mover's distance (rust-ml#440)
  - 7fe5c86 log-sum-exp overflow fix (rust-ml#444)

Adapted upstream's Hamerly code to work with our ndarray 0.17 / rand 0.9
upgrade. Key changes:
  - Added F: Weight bound where upstream used F: Float (rand 0.9 API)
  - Fixed Uniform::new() calls to .unwrap() (rand 0.9 returns Result)
  - Kept our upgraded dependency versions in Cargo.toml
  - Added upstream's KMeansAlgorithm enum and Hamerly structs
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