From 1ce2c2543112080765a84ba4223137a72d91c132 Mon Sep 17 00:00:00 2001 From: fa-sharp Date: Wed, 27 May 2026 01:43:59 -0400 Subject: [PATCH] update examples --- README.md | 2 +- examples/app.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)