Crates.io | shapes |
lib.rs | shapes |
version | 0.1.0 |
source | src |
created_at | 2020-01-19 19:19:22.222622 |
updated_at | 2020-01-19 19:19:22.222622 |
description | Sample Library from PIAIC Batch3 IoT |
homepage | https://github.com/bilal619/module_example/tree/master/shapes |
repository | https://github.com/bilal619/module_example/tree/master/shapes |
max_upload_size | |
id | 200211 |
size | 14,045 |
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
shapes = "0.1.0"
your cargo.toml file should look like this:
[package]
name = "example"
version = "0.1.0"
authors = ["bilal619 <m.bilal210@gmail.com>"]
edition = "2018
[dependencies]
shapes = "0.1.0"
In src/main.rs
you can use like this:
use shapes;
fn main() {
shapes::make_shape::circle::make_circle();
}
now `cargo run` for results