implementing-jsc-classes-rust
A contributor guide in the Bun repository for adding a JavaScript class implemented in Rust, using Bun's bindings generator.
What the skill teaches
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.
Capabilities
Not stated in its documentation
About
- Publisher
- Oven (Bun)
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Not stated in its documentation | |
| Publisher | Oven (Bun) | source |
| Official status | Not stated in its documentation | |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | NOASSERTION | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 11, 202696,758 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
Sources
- GitHub repositorygithub.com/oven-sh/bun · Backs: Publisher, ActivityNov 11, 2026
- Skill file (SKILL.md)github.com/oven-sh/bun · Backs: LicenceNov 10, 2026
- Folder in the repository (implementing-jsc-classes-rust)github.com/oven-sh/bun · Backs: Includes scriptsNov 10, 2026