Remove tower from axum's public API (#229)

Instead rely on `tower-service` and `tower-layer`. `tower` itself is
only used internally.

Fixes https://github.com/tokio-rs/axum/issues/186
This commit is contained in:
David Pedersen
2021-08-21 15:01:30 +02:00
committed by GitHub
parent 35ea7ca0ff
commit f8a0d81d79
27 changed files with 102 additions and 50 deletions
+3 -1
View File
@@ -96,6 +96,7 @@
//! [`Redirect`]: tower_http::services::Redirect
//! [load shed]: tower::load_shed
use crate::BoxError;
use crate::{
body::BoxBody,
response::IntoResponse,
@@ -108,7 +109,8 @@ use std::{
marker::PhantomData,
task::{Context, Poll},
};
use tower::{util::Oneshot, BoxError, Service, ServiceExt as _};
use tower::{util::Oneshot, ServiceExt as _};
use tower_service::Service;
pub mod future;