Secondwelcome

Crates.ioSecondwelcome
lib.rsSecondwelcome
version0.1.2
sourcesrc
created_at2020-11-29 08:19:38.227061
updated_at2020-11-29 08:29:16.005368
descriptionSecond Welcome Library
homepagehttps://github.com/ShahzadTabassum/Secondwelcome
repositoryhttps://github.com/ShahzadTabassum/Secondwelcome
max_upload_size
id317696
size14,293
ShahzadTabassum (ShahzadTabassum)

documentation

README

Second Welcome

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

Secondwelcome = "0.1.2"

your cargo.toml file should look like this:

[package]
name = "hello_world"
version = "0.1.2"
authors = ["ShahzadTabassum <www.shahzadtabassum786@gmail.com>"]
edition = "2018"

[dependencies]
Secondwelcome = "0.1.2"

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

use Secondwelcome;
fn main() {
    println!("Hello, world!");
    Secondwelcome::hello();
}

following will also work:

use Secondwelcome::hello;
fn main() {
    println!("Hello, world!");
    hello();
    }

now cargo run for results

Commit count: 4

cargo fmt