basic_lib_for_me 0.3.1

It is just a basic lib that i will use usually
Documentation
use std::ffi::CString;
use std::io::stdin;

/// get input from keyboard, return String
pub fn get_input() -> String {
    let mut data = String::new();
    stdin().read_line(&mut data).expect("Unable to read line!");
    data.trim_end().to_string()
}

/// get input with the given text output
pub fn get_input_with_text(text: &str) -> String {
    println!("{}", text);
    get_input()
}

/// get i32 input
pub fn get_i32_input() -> i32 {
    loop {
        let data = get_input();
        match data.trim().parse() {
            Ok(num) => return num,
            Err(_) => {
                println!("Invalid Number!");
                continue;
            }
        };
    }
}

/// pause the terminal
pub fn pause() {
    println!("Press Enter Key...");
    let _ = get_input();
}

/// clear the terminal
pub fn cls() {
    unsafe {
        libc::system(CString::new("cls").unwrap_or_default().as_ptr());
    }
}

/// a macro that create String
#[macro_export]
macro_rules! string {
    () => {
        String::new()
    };
    ($x:expr) => {
        String::from($x)
    };
}

/// a macro that create a value with Box
#[macro_export]
macro_rules! boxed {
    ($x:expr) => {
        Box::new($x)
    }
}