Build the lib rustc --crate-type=lib rary.rs
rustc --crate-type=lib rary.rs
The command generates the file library.rlib