Skip to content

feat: ruvllm-wasm v2.0.0 — first functional WASM publish#241

Merged
ruvnet merged 1 commit intomainfrom
feat/ruvllm-wasm-publish
Mar 6, 2026
Merged

feat: ruvllm-wasm v2.0.0 — first functional WASM publish#241
ruvnet merged 1 commit intomainfrom
feat/ruvllm-wasm-publish

Conversation

@ruvnet
Copy link
Owner

@ruvnet ruvnet commented Mar 6, 2026

Summary

  • Gate WebGPU web-sys features behind webgpu Cargo feature (was compiling 28 GPU types unconditionally, causing binary bloat + codegen issues)
  • Remove unused bytemuck, gpu_map_mode, GpuSupportedLimits dependencies
  • Add wasm-opt = false workaround for Rust 1.91 WASM codegen bug (type mismatch i32/f64 in release profile)
  • Published @ruvector/ruvllm-wasm@2.0.0 to npm with 435KB compiled WASM binary + TypeScript definitions
  • ADR-084 documenting build process, workarounds, and known limitations

Package contents (published)

File Size
ruvllm_wasm_bg.wasm 435 KB
ruvllm_wasm.js 128 KB
ruvllm_wasm.d.ts 45 KB
Total (gzipped) 178 KB

Test plan

  • wasm-tools validate — WASM binary validates
  • wasm-pack build --release — builds successfully with workaround flags
  • TypeScript definitions generated for all 20+ exported types
  • cargo check -p ruvllm-wasm — compiles clean
  • npm view @ruvector/ruvllm-wasm@2.0.0 — published and accessible

Closes #240

🤖 Generated with claude-flow

- Gate WebGPU web-sys features behind `webgpu` Cargo feature flag
- Remove unused bytemuck, gpu_map_mode, GpuSupportedLimits dependencies
- Add wasm-opt=false workaround for Rust 1.91 codegen bug
- Published @ruvector/ruvllm-wasm@2.0.0 with compiled WASM binary (435KB)
- ADR-084 documenting build workarounds and known limitations

Closes #240

Co-Authored-By: claude-flow <ruv@ruv.net>
@ruvnet ruvnet merged commit 0f9f55b into main Mar 6, 2026
18 checks passed
@ruvnet ruvnet deleted the feat/ruvllm-wasm-publish branch March 6, 2026 15:06
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.

feat: ruvllm-wasm v2.0.0 — first functional WASM publish

1 participant