1 unstable release
0.1.0 | Jan 19, 2020 |
---|
#17 in #welcome
280KB
Contains (rust library, 25KB) target/debug/libislamabad.rlib, (rust library, 25KB) libislamabad-b68b7edb558c86a8.rlib, (ELF exe/lib, 5KB) 1lp1gi6wbuvhgk54.o, (ELF exe/lib, 10KB) 3rcf6yqy9c1fw0u4.o
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