| Crates.io | multan381a |
| lib.rs | multan381a |
| version | 0.1.0 |
| created_at | 2020-01-24 15:37:12.738643+00 |
| updated_at | 2020-01-24 15:37:12.738643+00 |
| description | Sample Library by Tariq Masood |
| homepage | https://github.com/KingTariq/multan381a |
| repository | https://github.com/KindTariq/multan381a |
| max_upload_size | |
| id | 201533 |
| size | 14,020 |
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
multan381a = "0.1.0"
your cargo.toml file should look like this:
[package]
name = "multan381a"
version = "0.1.0"
authors = ["KingTariq<tariqmasood2k2@yahoo.com>"]
edition = "2018"
[dependencies]
multan381a = "0.1.0"
In src/main.rs you can use like this:
use multan381a;
fn main() {
println!("Hello, world!");
multan381a::city();
}
following will also work:
use mulatn381a::city;
fn main() {
println!("Hello, world!");
city();
}
now cargo run for results