Checkout
src/lib.rs
for an example