napi-rs-bindings
БесплатноБез исполняемых скриптовНе проверенnapi-rs conventions for exposing a Rust core to Node.js: #[napi] macros, napi::Error mapping, auto-generated .d.ts types, async Promises, and CommonJS/ESM…
от Goldziher★ 182 звезды на GitHubОб этом скилле
- Use
#[napi]macro for Node.js-visible functions and classes. Use#[napi(constructor)]for constructors. - Map Rust errors to JavaScript
Errorobjects vianapi::Error. ReturnResult<T>from all fallible functions. - Use
napi::bindgen_prelude::*for common type conversions. UseBufferfor binary data. - Support both CommonJS and ESM output. Generate
.d.tstype definitions automatically. - Use
#[napi(ts_return_type = "...")]for complex TypeScript types the macro can't infer. - Build with
napi build --release. Test from TypeScript/JavaScript using a JS test runner (e.g., Vitest or Jest). - Async: use
#[napi]onasync fnfor Promise-returning functions. UseAsyncTaskfor CPU-bound work. - Keep Node.js wrappers thin — business logic in Rust, JS provides idiomatic API.
- Handle
BigInt,Date, and other JS-specific types explicitly. - Anti-patterns: no panics in napi functions, no blocking the event loop, no manual
JsValuemanipulation.
Установить napi-rs-bindings в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл napi-rs-bindings?
napi-rs conventions for exposing a Rust core to Node.js: #[napi] macros, napi::Error mapping, auto-generated .d.ts types, async Promises, and CommonJS/ESM output. Load when generating or reviewing napi-rs Node.js bindings for a Rust library.
Как установить скилл napi-rs-bindings?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл napi-rs-bindings запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic