[Avg. reading time: 2 minutes]

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
````<span id='footer-class'>Ver 2.0.7</span>
<footer id="last-change">Last change: 2026-01-25</footer>````