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::makeshape::circle::makecircle(); }
now cargo run
for results