This code repository shows a basic example of how to use the jsonwebtoken Rust crate.
It shows encoding, decoding and validation of a token with simple claims.
There is an article on my blog explaining the details of this example: How to use JWT with Rust: learn the basics here.
Simply run the project using cargo:
cargo run
The output should be token information.