library_crate 0.1.2

First Welcome Library Crate
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 13.81 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 980.11 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • SyedHussain1988/library_crate
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • SyedHussain1988

First Welcome Library Crate

this is a demo rust library published on crates.io

to use this library you have to add following line in dependency section of cargo.toml

library_crate = "0.1.2"

your cargo.toml file should look like this:

[package]
name = "library_crate"
version = "0.1.2"
authors = ["SyedHussainAhmed121 <shas_virgo121@yahoo.com>"]
edition = "2018"

[dependencies]
library_crate = "0.1.2"

In src/main.rs you can use like this:

use library_crate;
fn main() {
    println!("Hello, world!");
    library_crate::welcome();
}

following will also work:

use library_crate::welcome;
fn main() {
    println!("Hello, world!");
    welcome();
    }

now cargo run for results