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
pub mod file_1;
pub mod file_2;
pub mod file_3;

pub fn print_hello_world() {
    println!("Hello, world!");
}

// publishing a crate

/// Computes a square of an input number
///
/// # Examples
/// # Tests
/// ```
/// let x = 8;
/// let y = new_project::square(x);
/// assert_eq!(y, 64);
/// ```
///
/// # Limitations
///
/// # Some other section
pub fn square(num: i32) -> i32 {
    num.pow(2)
}