| Crates.io | batch3 |
| lib.rs | batch3 |
| version | 0.1.2 |
| created_at | 2020-01-19 12:43:39.934562+00 |
| updated_at | 2020-01-23 09:04:53.901484+00 |
| description | Batch3 Islamabad Library Package |
| homepage | https://github.com/Adnan1990/batch3 |
| repository | https://github.com/Adnan1990/batch3 |
| max_upload_size | |
| id | 200088 |
| size | 13,856 |
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
batch3 = "0.1.2"
your cargo.toml file should look like this:
[package]
name = "hello_world"
version = "0.1.0"
authors = ["Muhammad Adnan <muhammad.adnan1990@gmail.com>"]
edition = "2018"
[dependencies]
batch3 = "0.1.2"
In src/main.rs you can use like this:
use batch3;
fn main() {
println!("Hello, world!");
batch3::islamabad::piaic();
}
following will also work:
use batch3::islamabad;
fn main() {
println!("Hello, world!");
islamabad::piaic();
}
now cargo run for results