# Second Welcome 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 `Secondwelcome = "0.1.2"` your cargo.toml file should look like this: ``` [package] name = "hello_world" version = "0.1.2" authors = ["ShahzadTabassum "] edition = "2018" [dependencies] Secondwelcome = "0.1.2" ``` In `src/main.rs` you can use like this: ``` use Secondwelcome; fn main() { println!("Hello, world!"); Secondwelcome::hello(); } ``` following will also work: ``` use Secondwelcome::hello; fn main() { println!("Hello, world!"); hello(); } ``` now `cargo run` for results