Crates.io | belajar_rust_crate_lib |
lib.rs | belajar_rust_crate_lib |
version | 0.1.0 |
source | src |
created_at | 2024-06-07 13:32:33.089013 |
updated_at | 2024-06-07 13:32:33.089013 |
description | Belajar Rust Crate (Library) |
homepage | |
repository | |
max_upload_size | |
id | 1264813 |
size | 4,708 |
Thank's to Mas Eko Kurniawan Khanedy This is the Library that will used (dependen) to Main
First of all must PUSH to GIT
git push -u orgin master
Create account on cargo crates
On Account Settings > API Tokens > New Token
run this command, and paste the Token
cargo login
check before publish
cargo publish --dry-run
full
❯ cargo publish --dry-run
Updating crates.io index
Packaging belajar_rust_crate_lib v0.1.0 (/Users/dedystyawan/data/learn/rust/rust_pzn/rust_crate/belajar-rust-crate-lib)
Verifying belajar_rust_crate_lib v0.1.0 (/Users/dedystyawan/data/learn/rust/rust_pzn/rust_crate/belajar-rust-crate-lib)
Updating crates.io index
Compiling autocfg v1.3.0
Compiling core-foundation-sys v0.8.6
Compiling iana-time-zone v0.1.60
Compiling num-traits v0.2.19
Compiling chrono v0.4.38
Compiling belajar_rust_crate_lib v0.1.0 (/Users/dedystyawan/data/learn/rust/rust_pzn/rust_crate/belajar-rust-crate-lib/target/package/belajar_rust_crate_lib-0.1.0)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.85s
Packaged 6 files, 3.6KiB (1.8KiB compressed)
Uploading belajar_rust_crate_lib v0.1.0 (/Users/dedystyawan/data/learn/rust/rust_pzn/rust_crate/belajar-rust-crate-lib)
warning: aborting upload due to dry run
publish it on crates
cargo publish