The classic counter example explained in the README.
README
The main file contains all the code of the example.
main
You can run it with cargo run:
cargo run
cargo run --package counter