axum/examples
David Pedersen 4e088b40f6
Show how to configure TraceLayer (#314)
This isn't very obvious so makes sense to include in the example
2021-09-10 17:56:00 +00:00
..
async-graphql Replace route with Router::new().route() (#215) 2021-08-19 22:37:48 +02:00
chat Replace route with Router::new().route() (#215) 2021-08-19 22:37:48 +02:00
error-handling-and-dependency-injection small changes to error handling example (#250) 2021-08-24 07:42:13 +02:00
form Replace route with Router::new().route() (#215) 2021-08-19 22:37:48 +02:00
global-404-handler Fix 404 example (#226) 2021-08-21 12:02:50 +02:00
hello-world Fix content-type in example response (#276) 2021-08-26 18:16:41 +00:00
jwt Add JWT example (#306) (#308) 2021-09-10 17:51:20 +02:00
key-value-store Replace route with Router::new().route() (#215) 2021-08-19 22:37:48 +02:00
low-level-rustls Simplify tls-rustls example (#254) 2021-08-24 09:56:31 +02:00
multipart-form Replace route with Router::new().route() (#215) 2021-08-19 22:37:48 +02:00
oauth Replace route with Router::new().route() (#215) 2021-08-19 22:37:48 +02:00
print-request-response Add print-request-response example (#216) 2021-08-20 09:26:31 +02:00
sessions Replace route with Router::new().route() (#215) 2021-08-19 22:37:48 +02:00
sse Add constructor to Sse (#244) 2021-08-23 17:51:30 +02:00
static-file-server Replace route with Router::new().route() (#215) 2021-08-19 22:37:48 +02:00
templates Replace route with Router::new().route() (#215) 2021-08-19 22:37:48 +02:00
testing Replace route with Router::new().route() (#215) 2021-08-19 22:37:48 +02:00
tls-rustls Simplify tls-rustls example (#254) 2021-08-24 09:56:31 +02:00
todos Replace route with Router::new().route() (#215) 2021-08-19 22:37:48 +02:00
tokio-postgres Replace route with Router::new().route() (#215) 2021-08-19 22:37:48 +02:00
tracing-aka-logging Show how to configure TraceLayer (#314) 2021-09-10 17:56:00 +00:00
unix-domain-socket Replace route with Router::new().route() (#215) 2021-08-19 22:37:48 +02:00
versioning Replace route with Router::new().route() (#215) 2021-08-19 22:37:48 +02:00
websockets Replace route with Router::new().route() (#215) 2021-08-19 22:37:48 +02:00
README.md Add JWT auth example as community showcase (#309) 2021-09-08 06:15:17 +00:00

Examples

This folder contains numerous example showing how to use axum. Each example is setup as its own crate so its dependencies are clear.

Community showcase

  • Houseflow: House automation platform written in Rust.
  • Datafuse: Cloud native data warehouse written in Rust.
  • JWT Auth: JWT auth service for educational purposes.