axum/examples
zys864 768d8a8218
Fix minor issues in some examples (#806)
* remove unused `axum`'s dependency:`tokio-util`

* fix `examples/todos`'s `async fn todos_index` iter_overeager_cloned

* Add docs to `/examples/async-graphql`, just like other xamples.

* remove `examples/async-graphql` unused dependencies `tracing-subscriber` and `trace`

* `examples/chat` deps `trace` and `tracing-subscriber` never be used. Add trace `debug` to `chat`

* remove `examples/print-request-response` unused dependency `axum-extra`

* remove `examples/prometheus-metrics` unused dependency `axum-extra`

* remove `examples/reverse-proxy` unused dependencies `tracing-subscriber` and `trace`

* `examples/chat` fmt fix
2022-03-01 09:30:09 +00:00
..
async-graphql Fix minor issues in some examples (#806) 2022-03-01 09:30:09 +00:00
chat Fix minor issues in some examples (#806) 2022-03-01 09:30:09 +00:00
cors Update tower-http (#581) 2021-12-01 20:14:25 +00:00
customize-extractor-error Change HeaderMap extractor to clone the headers (#698) 2022-01-23 18:01:52 +01:00
customize-path-rejection Provide more data in Path deserialization error (#574) 2021-12-02 08:51:29 +01:00
error-handling-and-dependency-injection Implement tower::Layer for Extension (#801) 2022-03-01 00:39:22 +01:00
form Update tracing-subscriber to 0.3 (#472) 2021-11-06 14:50:23 +00:00
global-404-handler Update tracing-subscriber to 0.3 (#472) 2021-11-06 14:50:23 +00:00
graceful-shutdown Simplify graceful shutdown (#673) 2021-12-28 16:23:07 +01:00
hello-world Move axum crate into workspace subfolder (#458) 2021-11-03 12:38:48 +01:00
http-proxy Introduce Response type alias as a shorthand for Response<BoxBody> (#590) 2021-12-05 19:16:46 +01:00
jwt examples(jwt): Claims.exp represents a UTC timestamp (#760) 2022-02-15 21:43:31 +00:00
key-value-store Implement tower::Layer for Extension (#801) 2022-03-01 00:39:22 +01:00
low-level-rustls Update dependencies (#753) 2022-02-12 17:16:14 +00:00
multipart-form Replace public use of mime crate with &str (#642) 2022-01-23 18:01:52 +01:00
oauth Implement tower::Layer for Extension (#801) 2022-03-01 00:39:22 +01:00
print-request-response Fix minor issues in some examples (#806) 2022-03-01 09:30:09 +00:00
prometheus-metrics Fix minor issues in some examples (#806) 2022-03-01 09:30:09 +00:00
query-params-with-empty-strings FromStr based empty_string_as_none implementation (#486) 2021-11-09 13:05:31 +01:00
readme Update tracing-subscriber to 0.3 (#472) 2021-11-06 14:50:23 +00:00
reverse-proxy Fix minor issues in some examples (#806) 2022-03-01 09:30:09 +00:00
routes-and-handlers-close-together Example for defining routes and handlers close together (#621) 2021-12-12 23:54:18 +01:00
sessions Implement tower::Layer for Extension (#801) 2022-03-01 00:39:22 +01:00
sqlx-postgres Implement tower::Layer for Extension (#801) 2022-03-01 00:39:22 +01:00
sse Add SSE tests (#652) 2022-01-03 18:48:50 +01:00
static-file-server Update tower-http (#581) 2021-12-01 20:14:25 +00:00
templates Add IntoResponseParts (#797) 2022-02-28 23:04:33 +00:00
testing Update tower-http (#581) 2021-12-01 20:14:25 +00:00
tls-rustls update tls-rustls example (#494) 2021-11-10 15:07:09 +01:00
todos Implement tower::Layer for Extension (#801) 2022-03-01 00:39:22 +01:00
tokio-postgres Implement tower::Layer for Extension (#801) 2022-03-01 00:39:22 +01:00
tracing-aka-logging Introduce Response type alias as a shorthand for Response<BoxBody> (#590) 2021-12-05 19:16:46 +01:00
unix-domain-socket Use nightly clippy & rustfmt for more style checks (#487) 2021-11-09 11:53:57 +00:00
validator Fix misc warnings from CI (#620) 2021-12-12 17:21:29 +01:00
versioning Introduce Response type alias as a shorthand for Response<BoxBody> (#590) 2021-12-05 19:16:46 +01:00
websockets Expand WebSocket example to match on Message (#723) 2022-01-25 15:31:33 +00:00
README.md Restructure community showcase (#454) 2021-11-03 09:20:01 +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.

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