Cargo Publish

Note: Once you publish a crate, there is no removal.

Visit https://crates.io/

  • Login with GitHub
  • Verify the email address
  • Goto Account > API Settings and Generate a new token.

Epoch to human

Sample Libraries

Epoch to Human

Hello Lib

// Cargo Commands

cargo login <token>
cargo publish --dry-run

// git commands

git add Cargo.toml
git add README.md
git add src/lib.rs
git add .gitignore
git commit -m "Demo Crate"

// Publish

cargo publish