0.4.12 • Published 12 months ago
rust-to-npm v0.4.12
rust-to-npm
The Rust crate for rust-to-npm.
Methods
use rust_to_npm:create_package;
fn main() {
// colocates a package.json that matches Cargo.toml 1:1
let package = create_package(None, "Cargo.toml");
println!("{:?}", package);
}
Output:
{
"name": "rust-to-npm",
"version": "0.4.10",
"description": "ship a rust project to npm on all operating systems leveraging cargo.",
"main": "start.js",
"directories": {
"test": "tests"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"postinstall": "node ./pre-install.js",
"uninstall": "node ./uninstall.js"
},
"repository": {
"type": "git",
"url": "https://github.com/a11ywatch/rust-to-npm.git"
},
"keywords": ["rust-to-npm", "deploy-rust", "npm", "rust"],
"author": "Jeff Mendez",
"license": "MIT",
"bugs": {
"url": "https://github.com/a11ywatch/rust-to-npm/issues"
},
"homepage": "https://github.com/a11ywatch/rust-to-npm",
"files": [
"pre-install.js",
"start.js",
"uninstall.js",
"README.md",
"LICENSE"
]
}
0.4.9
1 year ago
0.4.10
1 year ago
0.4.11
12 months ago
0.4.12
12 months ago
0.3.10
2 years ago
0.4.5
1 year ago
0.4.4
1 year ago
0.4.6
1 year ago
0.4.1
2 years ago
0.4.0
2 years ago
0.4.3
1 year ago
0.4.2
1 year ago
0.3.9
2 years ago
0.3.6
2 years ago
0.3.5
2 years ago
0.3.8
2 years ago
0.3.7
2 years ago
0.3.4
2 years ago
0.3.3
2 years ago
0.3.0
2 years ago
0.2.10
2 years ago
0.2.9
2 years ago
0.2.8
2 years ago
0.2.7
2 years ago
0.2.6
2 years ago
0.2.5
2 years ago
0.2.4
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.8
2 years ago
0.1.0
2 years ago