rust-to-npm-0.1.8 is not a library.
Visit the last successful build:
rust-to-npm-0.4.13
rust-to-npm
rust to npm in one command.
Getting Started
You can use this to run the command locally then run npm publish
to ship your crate cross platform leveraging cargo to build across all systems.
This project tries to convert Cargo.toml properties to package.json mappings and deploys respecting the private
property.
Installation
# cargo
# run the command inside the repo with the Cargo.toml file
You may want to add the following to the .gitignore and just reference the project being made with.
.DS_Store
/target
package.json
package-lock.json
start.js
uninstall.js
pre-install.js
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 crawler crate for usage in node. See example project of library being used as a sidecar from rust into a node project.
TODO
- Allow include local rust src files for non CLI type bins for easy
node_module
imports.