| Crates.io | crates-io-demo-lib-nicu1989 |
| lib.rs | crates-io-demo-lib-nicu1989 |
| version | 0.1.0 |
| created_at | 2025-08-31 13:41:56.387626+00 |
| updated_at | 2025-08-31 13:41:56.387626+00 |
| description | A minimal Rust library used to demo how to publish to crates.io. |
| homepage | https://github.com/nicu1989/ |
| repository | https://github.com/nicu1989/public_sandbox |
| max_upload_size | |
| id | 1818563 |
| size | 19,907 |
A minimal Rust library used to demonstrate publishing to crates.io.
cargo login <YOUR_API_TOKEN>Cargo.toml:
name is unique and owned by you.description, repository, keywords, etc.license = "MIT OR Apache-2.0" or set your own.cargo publish --dry-runcargo publishCargo.toml following SemVer.cargo publish --dry-run, then cargo publish.crates-io-demo-lib is an example.Add this crate to your Cargo.toml:
[dependencies]
crates-io-demo-lib-nicu1989 = "0.1"
Then call the function:
use crates_io_demo_lib::greet;
fn main() {
println!("{}", greet("world"));
}