rust-to-npm-0.2.1 is not a library.
Visit the last successful build:
rust-to-npm-0.4.13
rust-to-npm
Deploy a rust project to npm in one command.
Getting Started
This project converts your rust project into a npm package that can be installed on all systems by leveraging cargo.
The Cargo.toml properties map to package.json.
You need to have a valid name
, version
and description
set in your Cargo.toml.
Installation
# cargo
You may want to add the following to yout .gitignore and just reference the project being made with.
package.json
package-lock.json
start.js
uninstall.js
pre-install.js
Usage
If your package is private make sure to have the private
set in your Cargo.toml file.
# run the command inside the repo with the Cargo.toml file
Goals
- Easy convert installs to
npm
. - Allows full transparency of Rust code that user installs instead of dangerous binaries.
About
This project is used to convert the rust A11yWatch CLI for usage in node.
See example usage converting the rust crawler library as a sidecar into a node project.
TODO
- Allow include local rust src files for non CLI type bins for easy
node_module
imports like the crawler project.