Crates.io | divide |
lib.rs | divide |
version | 0.1.1 |
source | src |
created_at | 2020-01-19 16:57:02.404091 |
updated_at | 2020-01-19 17:14:20.318095 |
description | Divide Library |
homepage | https://github.com/mazharjameel786/divide.git |
repository | https://github.com/mazharjameel786/divide.git |
max_upload_size | |
id | 200178 |
size | 26,486 |
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
divide = "0.1.1"
your cargo.toml file should look like this:
[package]
name = "divide"
version = "0.1.0"
authors = ["mazhar_jamil"]
edition = "2018"
[dependencies]
divide = "0.1.1"
In src/main.rs
you can use like this:
use divide::arithmetic::division;
fn main() {
println!("Hello, world!");
division::division_res(20.0,4.0);
}
use divide::arithmetic::division::division_res;
fn main() {
println!("Hello, world!");
division_res(20.0,4.0);
}
now cargo run
for results