1 unstable release
0.1.0 | Jan 19, 2020 |
---|
#56 in #following
290KB
Contains (rust library, 25KB) target/debug/libpakistan.rlib, (rust library, 25KB) libpakistan-61e51c752d1cfd41.rlib, (ELF exe/lib, 5KB) 3cd91ia9w3uplk97.o, (ELF exe/lib, 10KB) qgqbzv4dov8b71b.o
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
pakistan = "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]
pakistan = "0.1.0"
In src/main.rs
you can use like this:
use pakistan;
fn main() {
println!("Hello, world!");
pakistan::islamabad::piaic();
}
following will also work:
use pakistan::islamabad::piaic;
fn main() {
println!("Hello, world!");
piaic();
}
now cargo run
for results