r2n
Ship Rust CLI tools to npm.
⚠️ EXPERIMENTAL: This package is experimental and should not be used in production. APIs and behavior may change without notice.
Install
Usage
Create a new project
Add to existing Rust project
Build
This cross-compiles your Rust binary and creates an npm package ready to publish.
What it does
- Creates
package.jsonwith proper bin configuration - Generates a Node.js wrapper script
- Cross-compiles your Rust binary for multiple platforms
- Outputs to
dist/ready for npm publish
License
MIT OR Apache-2.0