implementing-jsc-classes-rust
A contributor guide in the Bun repository for adding a JavaScript class implemented in Rust, using Bun's bindings generator.
スキルの内容
A contributor guide in the Bun repository for adding a JavaScript class implemented in Rust, using Bun's bindings generator. The class is described in a .bind.ts schema (constructor arguments, methods, getters, internal fields), and the generator produces the JavaScriptCore cell, prototype, constructor and argument conversion that call into a matching Rust struct, so any mismatch fails at compile time. It explains when the struct should be reference-counted, which capabilities a method can request to allocate, throw or run JavaScript, why JavaScript values must never be kept in struct fields, and which files in the repository serve as worked examples. It is only useful when changing Bun's own source.
できること
ドキュメントに記載なし
概要
- 公開元
- Oven (Bun)
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
詳細
出典
- GitHubリポジトリgithub.com/oven-sh/bun · 根拠となる項目:公開元, 活動状況2026年11月11日
- スキルファイル(SKILL.md)github.com/oven-sh/bun · 根拠となる項目:ライセンス2026年11月10日
- リポジトリ内のフォルダ(implementing-jsc-classes-rust)github.com/oven-sh/bun · 根拠となる項目:スクリプトを含む2026年11月10日