#belajar #reference #slide #github

belajar_rust_crate_lib

Belajar Rust Crate (Library)

1 unstable release

0.1.0 Jun 7, 2024

#336 in Date and time

Apache-2.0

5KB

Project Title

Thank's to Mas Eko Kurniawan Khanedy This is the Library that will used (dependen) to Main

Acknowledgements

Rust Crate

How To used:

  1. First of all must PUSH to GIT

    git push -u orgin master
    
  2. Create account on cargo crates

  3. On Account Settings > API Tokens > New Token

  4. run this command, and paste the Token

    cargo login 
    
  5. 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 
    
  6. publish it on crates

    cargo publish
    

Dependencies

~1MB
~18K SLoC