cargo publish

We can publish crate on crates.io for others to use it.
Steps to publish:


Steps to publish

1. Login to https://crates.io/ using github account
2. https://crates.io/me/ Get API Key. Run cargo login with API key. 
This is authentication token and will be stored in ~/.cargo/credentials
$ cargo login abcdefghijklmnopqrstuvwxyz012345

3. Write code, Choose unique name, provide license and publish
$ vim src\test.rs
..
$ cat cargo.toml
[package]
name = "guessing_game"
version = "0.1.0"
authors = ["Your Name "<you@example.com>"]
edition = "2018"
description = "A fun game where you guess what number the computer has chosen."
license = "MIT OR Apache-2.0"
[dependencies]

$ cargo publish

//republish, ie we have new version want to publish
- change version in cargo.toml
$ cargo publish       

//Remove particular version
$ cargo yank --vers 0.1.0