cd example/src here you have the main.rs and you do : cargo run --bin example
cd example/src
here you have the main.rs
and you do :
cargo run --bin example