firstwelcome

Crates.iofirstwelcome
lib.rsfirstwelcome
version0.1.1
sourcesrc
created_at2019-10-11 05:44:00.129884
updated_at2019-10-11 06:42:20.706153
descriptionFirst Welcome Library
homepagehttps://github.com/imran82ali/firstwelcome
repositoryhttps://github.com/imran82ali/firstwelcome
max_upload_size
id171610
size13,937
Imran Ali (imran82ali)

documentation

README

First 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

firstwelcome = "0.1.1"

your cargo.toml file should look like this:

[package]
name = "hello_world"
version = "0.1.0"
authors = ["imran82ali <code.imranali@gmail.com>"]
edition = "2018"

[dependencies]
firstwelcome = "0.1.1"

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

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

following will also work:

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

now cargo run for results

Commit count: 14

cargo fmt