axum/examples
David Pedersen 9465128f3e
Rework docs (#437)
This reworks axum's docs in an attempt to make things easier to find. Previously I wasn't a fan of those docs for the same topic were spread across the root module docs and more specific places like types and methods.

This changes it such that the root module docs only gives a high level introduction to a topic, perhaps with a small example, and then link to other places where all the details are. This means `Router` is now the single place to learn about routing, and etc for the topics like handlers and error handling.
2021-11-01 21:13:37 +00:00
..
async-graphql Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
chat Fix inconsistent naming of WebSocket rejections (#416) 2021-10-25 23:09:47 +00:00
customize-extractor-error Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
error-handling-and-dependency-injection Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
form Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
global-404-handler Stores routes in a map (#408) 2021-10-25 20:49:39 +02:00
graceful_shutdown Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
hello-world Rework docs (#437) 2021-11-01 21:13:37 +00:00
http-proxy Add HTTP proxy example (#425) 2021-10-26 20:46:40 +02:00
jwt Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
key-value-store Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
low-level-rustls Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
multipart-form Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
oauth Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
print-request-response Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
reverse-proxy Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
sessions Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
sse Rework docs (#437) 2021-11-01 21:13:37 +00:00
static-file-server Rework docs (#437) 2021-11-01 21:13:37 +00:00
templates Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
testing Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
tls-rustls Fix compile time regression by boxing routes internally (#404) 2021-10-24 20:52:42 +02:00
todos Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
tokio-postgres Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
tracing-aka-logging Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
unix-domain-socket Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
validator Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
versioning Reorganize method routers for handlers and services (#405) 2021-10-24 20:05:16 +00:00
websockets Rework docs (#437) 2021-11-01 21:13:37 +00:00
README.md Add notify.run to community showcase (#435) 2021-10-31 08:22:46 +01: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.
  • ROAPI: Create full-fledged APIs for static datasets without writing a single line of code.
  • notify.run: HTTP-to-WebPush relay for sending desktop/mobile notifications to yourself, written in Rust.