diff --git a/README.md b/README.md index e8cdf8c..4595e18 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # axum-app-wrapper -A small plugin layer for `axum` applications, inspired by [fastify](https://fastify.dev/) from the Node/JS ecosystem. +A small plugin layer for `axum` applications, inspired by [fastify](https://fastify.dev/) from the Node/JS ecosystem and the [rocket](https://rocket.rs/) framework. Plugins can: diff --git a/examples/app.rs b/examples/app.rs index 3ace388..5e1ed4e 100644 --- a/examples/app.rs +++ b/examples/app.rs @@ -43,7 +43,7 @@ async fn main() -> anyhow::Result<()> { let metrics_registry = Arc::new(Metrics::new()); // Create your plugins using AdHocPlugin - let config_plugin = AdHocPlugin::::new() + let config_plugin = AdHocPlugin::::named("Config") .on_init(async |mut state| { state.insert(config); Ok(state) @@ -53,7 +53,7 @@ async fn main() -> anyhow::Result<()> { Ok(router.route("/health", get(health))) }); - let metrics_plugin = AdHocPlugin::::new() + let metrics_plugin = AdHocPlugin::::named("Metrics") .on_init(async |mut state| { state.insert(metrics_registry); Ok(state)