axum/examples
2024-12-27 08:57:52 +01: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 Upgrade tokio-tungstenite to 0.26 (#3078) 2024-12-18 15:15:55 -05:00
compression Replace custom BoxCloneService struct with tower::util::BoxCloneSyncService (#3109) 2024-12-27 08:57:52 +01:00
consume-body-in-extractor-or-middleware Replace async_trait with AFIT / RPITIT (#2308) 2024-09-28 21:27:11 +00:00
cors Upgrade most example dependencies (#2936) 2024-09-27 18:50:52 +02:00
customize-extractor-error Replace async_trait with AFIT / RPITIT (#2308) 2024-09-28 21:27:11 +00:00
customize-path-rejection chore: Upgrade matchit to 0.8 (#2645) 2024-10-03 15:46:58 +00:00
dependency-injection chore: Upgrade matchit to 0.8 (#2645) 2024-10-03 15:46:58 +00:00
diesel-async-postgres Replace async_trait with AFIT / RPITIT (#2308) 2024-09-28 21:27:11 +00:00
diesel-postgres Upgrade most example dependencies (#2936) 2024-09-27 18:50:52 +02:00
error-handling Upgrade most example dependencies (#2936) 2024-09-27 18:50:52 +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 Remove unused dependencies from examples (#2934) 2024-09-25 03:44:47 -04:00
graceful-shutdown Upgrade most example dependencies (#2936) 2024-09-27 18:50:52 +02:00
handle-head-request Replace custom BoxCloneService struct with tower::util::BoxCloneSyncService (#3109) 2024-12-27 08:57:52 +01:00
hello-world Add serve function and remove Server re-export (#1868) 2023-04-21 17:45:31 +02:00
http-proxy Replace custom BoxCloneService struct with tower::util::BoxCloneSyncService (#3109) 2024-12-27 08:57:52 +01:00
jwt Remove once_cell from jwt example (#3014) 2024-11-11 16:57:10 +00:00
key-value-store Replace custom BoxCloneService struct with tower::util::BoxCloneSyncService (#3109) 2024-12-27 08:57:52 +01:00
low-level-native-tls Replace custom BoxCloneService struct with tower::util::BoxCloneSyncService (#3109) 2024-12-27 08:57:52 +01:00
low-level-openssl Replace custom BoxCloneService struct with tower::util::BoxCloneSyncService (#3109) 2024-12-27 08:57:52 +01:00
low-level-rustls Update low-level-rustls example (#3013) 2024-11-11 16:55:43 +00:00
mongodb Update mongodb example (#2944) 2024-09-28 23:40:52 +02:00
multipart-form Upgrade most example dependencies (#2936) 2024-09-27 18:50:52 +02:00
oauth Add a separate trait for optional extractors (#2475) 2024-12-10 02:54:59 +00:00
parse-body-based-on-content-type Replace async_trait with AFIT / RPITIT (#2308) 2024-09-28 21:27:11 +00:00
print-request-response Remove unused dependencies from examples (#2934) 2024-09-25 03:44:47 -04:00
prometheus-metrics Upgrade most example dependencies (#2936) 2024-09-27 18:50:52 +02:00
query-params-with-empty-strings Replace custom BoxCloneService struct with tower::util::BoxCloneSyncService (#3109) 2024-12-27 08:57:52 +01:00
readme Remove unused dependencies from examples (#2934) 2024-09-25 03:44:47 -04:00
request-id Replace custom BoxCloneService struct with tower::util::BoxCloneSyncService (#3109) 2024-12-27 08:57:52 +01:00
reqwest-response Upgrade most example dependencies (#2936) 2024-09-27 18:50:52 +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 Replace custom BoxCloneService struct with tower::util::BoxCloneSyncService (#3109) 2024-12-27 08:57:52 +01:00
simple-router-wasm Remove unused dependencies from examples (#2934) 2024-09-25 03:44:47 -04:00
sqlx-postgres Replace async_trait with AFIT / RPITIT (#2308) 2024-09-28 21:27:11 +00:00
sse Upgrade most example dependencies (#2936) 2024-09-27 18:50:52 +02:00
static-file-server Replace custom BoxCloneService struct with tower::util::BoxCloneSyncService (#3109) 2024-12-27 08:57:52 +01:00
stream-to-file chore: Upgrade matchit to 0.8 (#2645) 2024-10-03 15:46:58 +00:00
templates chore: Upgrade matchit to 0.8 (#2645) 2024-10-03 15:46:58 +00:00
templates-minijinja Upgrade most example dependencies (#2936) 2024-09-27 18:50:52 +02:00
testing Replace custom BoxCloneService struct with tower::util::BoxCloneSyncService (#3109) 2024-12-27 08:57:52 +01:00
testing-websockets Upgrade tokio-tungstenite to 0.26 (#3078) 2024-12-18 15:15:55 -05:00
tls-graceful-shutdown Move the Host extractor to axum-extra (#2956) 2024-10-14 22:45:37 +00:00
tls-rustls Move the Host extractor to axum-extra (#2956) 2024-10-14 22:45:37 +00:00
todos Replace custom BoxCloneService struct with tower::util::BoxCloneSyncService (#3109) 2024-12-27 08:57:52 +01:00
tokio-postgres examples: Upgrade bb8-postgres deps (#3072) 2024-12-09 22:36:47 -05:00
tokio-redis Replace async_trait with AFIT / RPITIT (#2308) 2024-09-28 21:27:11 +00:00
tracing-aka-logging Upgrade most example dependencies (#2936) 2024-09-27 18:50:52 +02:00
unix-domain-socket Replace custom BoxCloneService struct with tower::util::BoxCloneSyncService (#3109) 2024-12-27 08:57:52 +01:00
validator Replace async_trait with AFIT / RPITIT (#2308) 2024-09-28 21:27:11 +00:00
versioning chore: Upgrade matchit to 0.8 (#2645) 2024-10-03 15:46:58 +00:00
websockets Upgrade tokio-tungstenite to 0.26 (#3078) 2024-12-18 15:15:55 -05:00
websockets-http2 Upgrade tokio-tungstenite to 0.26 (#3078) 2024-12-18 15:15:55 -05: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.