wasm-bindings

Integrate and test BrepKernel operations in Rust and WebAssembly.

20|3|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/andymai/brepkit --skill wasm-bindings
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wasm-bindings
Source: https://github.com/andymai/brepkit/tree/main/.claude/skills/wasm-bindings
Command: npx skills add https://github.com/andymai/brepkit --skill wasm-bindings

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of integrating and testing BrepKernel operations in Rust and WebAssembly, streamlining the development and debugging of CAD applications.

Core Features & Use Cases

  • WASM Binding Development: Provides a guide for adding or modifying methods on BrepKernel in the Rust crate.
  • Batch Operations: Explains how to execute batch operations and handle errors effectively.
  • Testing and Debugging: Offers instructions for testing local kernel builds and debugging common issues.
  • Use Case: A developer working on a 3D modeling application in Rust can use this Skill to ensure their WebAssembly-based kernel operations are functioning correctly and efficiently.

Quick Start

Run the cargo build -p brepkit-wasm --target wasm32-unknown-unknown command to build the BrepKernel for the wasm target.

Frequently Asked Questions about wasm-bindings

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build BrepKernel for a WebAssembly target in Rust?

To build BrepKernel for WebAssembly in Rust, run the cargo build command targeting wasm32-unknown-unknown. This compiles the Rust crate into a wasm module, enabling CAD kernel operations to run in browser environments.

How do I add new methods to BrepKernel WebAssembly bindings?

Adding methods to BrepKernel WebAssembly bindings involves modifying the Rust crate to expose new functions. The Skill provides a guide for wiring these methods correctly, ensuring proper integration and testing of CAD operations.

How do I execute batch operations in WebAssembly-based CAD applications?

Executing batch operations in WebAssembly CAD applications requires structuring calls to the BrepKernel Rust crate. The Skill explains how to run these grouped operations and handle any errors that occur during execution effectively.

Do I need Rust and WebAssembly knowledge to use BrepKernel?

Yes, you need knowledge of both Rust and WebAssembly to use BrepKernel effectively. Familiarity with the BrepKernel library is also required to integrate and test kernel operations within CAD application development workflows.

How do I test and debug local BrepKernel builds for WebAssembly?

Testing and debugging local BrepKernel builds involves verifying the compiled WebAssembly module against expected CAD behaviors. The Skill offers instructions for testing local kernel builds and resolving common integration issues.