axum/examples
2024-09-24 23:50:53 +02:00
..
anyhow-error-response Add serve function and remove Server re-export (#1868) 2023-04-21 17:45:31 +02:00
async-graphql Remove lingering async-graphql example file 2023-01-08 16:28:45 +01:00
auto-reload Fix typo in auto-reload example. (#2680) 2024-03-26 10:22:59 +01:00
chat Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
compression Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
consume-body-in-extractor-or-middleware Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
cors Update to latest versions of hyper and http-body (#1882) 2023-11-23 11:03:03 +00:00
customize-extractor-error Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
customize-path-rejection Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
dependency-injection Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
diesel-async-postgres Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
diesel-postgres Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
error-handling Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
form Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
global-404-handler Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
graceful-shutdown Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
handle-head-request Update to latest versions of hyper and http-body (#1882) 2023-11-23 11:03:03 +00:00
hello-world Add serve function and remove Server re-export (#1868) 2023-04-21 17:45:31 +02:00
http-proxy Upgrade private dependencies (#2935) 2024-09-24 23:50:53 +02:00
jwt Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
key-value-store Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
listen-multiple-addrs Update unix-domain-socket, listen-multiple-addrs, and testing examples (#2358) 2023-11-27 10:23:52 +01:00
low-level-openssl Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
low-level-rustls Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
multipart-form Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
oauth Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
parse-body-based-on-content-type Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
print-request-response Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
prometheus-metrics Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
query-params-with-empty-strings Update to latest versions of hyper and http-body (#1882) 2023-11-23 11:03:03 +00:00
readme Add serve function and remove Server re-export (#1868) 2023-04-21 17:45:31 +02:00
reqwest-response Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
rest-grpc-multiplex Fix a few typos in docs and comments (#2808) 2024-06-27 08:45:57 +02:00
reverse-proxy Update example reverse-proxy to axum 0.7 (#2395) 2023-12-02 11:48:10 +01:00
routes-and-handlers-close-together Add serve function and remove Server re-export (#1868) 2023-04-21 17:45:31 +02:00
serve-with-hyper Fix warnings and errors from beta Rust (#2904) 2024-09-09 18:55:15 +00:00
simple-router-wasm Update to latest versions of hyper and http-body (#1882) 2023-11-23 11:03:03 +00:00
sqlx-postgres Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
sse Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
static-file-server Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
stream-to-file Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
templates Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
templates-minijinja add minijinja templating example (#2523) 2024-02-11 12:17:41 +01:00
testing Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
testing-websockets Upgrade tokio-tungstenite to 0.23 (#2841) 2024-08-09 20:41:01 +02:00
tls-graceful-shutdown Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
tls-rustls Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
todos Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
tokio-postgres Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
tokio-redis Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
tracing-aka-logging Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
unix-domain-socket Fix warnings and errors from beta Rust (#2904) 2024-09-09 18:55:15 +00:00
validator Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
versioning Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
websockets Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
README.md Grammar: Fix "it's" vs "its" in several places (#2518) 2024-01-15 21:48:11 +01:00

Examples

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

For a list of what the community built with axum, please see the list here.