·napi-rs-node-bindings
</>

napi-rs-node-bindings

pmcfadin/cqlite

使用napi-rs 的 Rust 库的 Node.js 绑定。在处理 Node.js/JavaScript 与 Rust 代码的绑定时使用,包括创建或修改 napi 宏和结构、在 Rust 和 JavaScript 之间转换类型、跨 FFI 边界处理错误、异步/Promise 模式、构建本机模块、发布到 npm、测试绑定代码或调试绑定问题。针对具有奇偶校验跟踪功能的 CQLite(Cassandra CQL 绑定)进行了调整。

2安装·0热度·@pmcfadin

安装

$npx skills add https://github.com/pmcfadin/cqlite --skill napi-rs-node-bindings

SKILL.md

| Type mapping between Rust ↔ JavaScript | type-conversions.md | | Converting Rust errors to JS exceptions | error-handling.md | | Async patterns and Promises | async-patterns.md | | Building and publishing to npm | build-publish.md | | Testing strategies | testing.md | | Debugging common binding issues | debugging.md |

| #[napi] | Expose function/struct/impl to JS | | #[napi(constructor)] | Class constructor | | #[napi(getter)] | Property getter | | #[napi(setter)] | Property setter | | #[napi(factory)] | Static factory method | | #[napi(jsname = "...")] | Rename in JavaScript | | #[napi(tsargstype = "...")] | Custom TypeScript arg types |

| #[napi(tsreturntype = "...")] | Custom TypeScript return type | | #[napi(object)] | Plain JS object (no class) | | #[napi(strict)] | Strict type checking |

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/pmcfadin/cqlite --skill napi-rs-node-bindings
分类
</>开发工具
认证
收录时间
2026-02-05
更新时间
2026-02-18

快速解答

什么是 napi-rs-node-bindings?

使用napi-rs 的 Rust 库的 Node.js 绑定。在处理 Node.js/JavaScript 与 Rust 代码的绑定时使用,包括创建或修改 napi 宏和结构、在 Rust 和 JavaScript 之间转换类型、跨 FFI 边界处理错误、异步/Promise 模式、构建本机模块、发布到 npm、测试绑定代码或调试绑定问题。针对具有奇偶校验跟踪功能的 CQLite(Cassandra CQL 绑定)进行了调整。 来源:pmcfadin/cqlite。

如何安装 napi-rs-node-bindings?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/pmcfadin/cqlite --skill napi-rs-node-bindings 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/pmcfadin/cqlite

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-05

相关 Skills

暂无