islamabad

Crates.ioislamabad
lib.rsislamabad
version0.1.0
sourcesrc
created_at2020-01-19 09:13:19.179735
updated_at2020-01-19 09:13:19.179735
descriptionSample Library from PIAIC Batch3 IoT
homepagehttps://github.com/imran82ali/islamabad
repositoryhttps://github.com/imran82ali/islamabad
max_upload_size
id200060
size371,680
Imran Ali (imran82ali)

documentation

README

First Welcome from Islamabad

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

islamabad = "0.1.0"

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]
islamabad = "0.1.0"

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

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

following will also work:

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

now cargo run for results

Commit count: 3

cargo fmt