From 7c37bb818a7608ebf3f18a1b16b28971bbc57f64 Mon Sep 17 00:00:00 2001 From: David Pedersen <david.pdrsn@gmail.com> Date: Thu, 22 Jul 2021 15:44:16 +0200 Subject: [PATCH] Update goals in readme --- README.md | 4 +++- src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 690f0e9e..8476a888 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,9 @@ More information about this crate can be found in the [crate documentation][docs handle(Request) -> Response`. - Solid foundation. axum is built on top of [tower] and [hyper] and makes it easy to plug in any middleware from the [tower] and [tower-http] ecosystem. -- Focus on routing, extracting data from requests, and generating responses. +This improves modularity since axum doesn't have its own custom +middleware system. +- Focus on routing, extracting data from requests, and building responses. tower middleware can handle the rest. - Macro free core. Macro frameworks have their place but axum focuses on providing a core that is macro free. diff --git a/src/lib.rs b/src/lib.rs index 521cb657..63624ad5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,7 +24,7 @@ //! handle(Request) -> Response`. //! - Solid foundation. axum is built on top of [tower] and [hyper] and makes it //! easy to plug in any middleware from the [tower] and [tower-http] ecosystem. -//! This improves compatibility since axum doesn't have its own custom +//! This improves modularity since axum doesn't have its own custom //! middleware system. //! - Focus on routing, extracting data from requests, and building responses. //! tower middleware can handle the rest.