To be able to run the program, there should be a bin target added to main/Cargo.toml [[bin]] name = "PasswdGenerator" path = "src/main.rs"