1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! #Basic math crate
//! This is a collection of some generally used math functions
/// Compute the square of a given number
/// # Examples
/// ```
/// let n=5;
/// let result=publishing_crate::square(n);
/// assert_eq!(25,result)
/// ```
/*
"///" used for doc
cargo doc --open
*/
/// Compute the cube of a given number
/// # Examples
/// ```
/// let n=5;
/// let result=publishing_crate::cube(n);
/// assert_eq!(125,result)
/// ```
/*
"///" used for doc
cargo doc --open
go to crates.io and login with github
get email verified
cargo login api_token
update Cargo.toml with authors, description, license
cargo publish --allow-dirty
*/