0.1.3 • Published 2 years ago
other-name-jims-rust-to-npm-cli-test v0.1.3
Recreate this project with these steps:
Step 1) Create a new repo
Create a new repo and clone it
Step 2) Create a new rust binary project
This can easily be done with cargo:
cargo new jims-rust-cli-testStep 3) Change the hello message
Open the main.rs file and change the string returned to whatever you like...
Step 4) Adjust Cargo.toml
Add these keys to Cargo.toml (with your desired values):
description = "A cool cli tool test by Jim!"
repository = "https://github.com/JimLynchCodes/jims-rust-to-npm-test"
readme = "README-for-registry.md"
keywords = ["rust-to-npm-cli", "deploy-rust", "npm", "rust", "cli-tool"]
categories = ["command-line-utilities"]
license = "MIT"
homepage = "https://github.com/JimLynchCodes/jims-rust-to-npm-test"
authors = ["Jim Lynch - jim.lynch@evaluates2.com"]Step 5) Account Logins
Login to your crates.io account in your terminal:
cargo loginLogin to your npmjs.com account in your terminal:
npm adduserStep 6) Install rust-to-npm
cargo install rust-to-npm-cliOR via npm (but not both)
npm i -g rust-to-npm-cliStep 7) Deploy With Other Name
rust-to-npm-cli deploy -b -n other-name-jims-rust-to-npm-cli-testStep 8) Re-Deploy
Change the version in Caargo.toml (according to semver) and then repeat step 6.
Step 9) Install Your Package
npm i -g other-name-jims-rust-to-npm-cli-testor
cargo install other-name-jims-rust-to-npm-cli-testStep 10) User Your Package
jims-new-rust-cli-test0.1.3
2 years ago