1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-02-17 15:53:31 +01:00

moved boxed service and new service to actix-service

This commit is contained in:
Nikolay Kim 2019-02-22 18:20:54 -08:00
parent 83f51b28d7
commit 7ee33efdfd
6 changed files with 18 additions and 5 deletions

View File

@ -2,6 +2,10 @@
## [0.3.0] - 2019-02-xx ## [0.3.0] - 2019-02-xx
## Added
* Added boxed NewService and Service.
## Changed ## Changed
* Added `Config` argument to `NewService` trait. * Added `Config` argument to `NewService` trait.

View File

@ -258,7 +258,8 @@ mod tests {
use futures::future::{ok, FutureResult}; use futures::future::{ok, FutureResult};
use futures::{Async, Future, Poll}; use futures::{Async, Future, Poll};
use crate::{Blank, BlankNewService, NewService, Service, ServiceExt}; use crate::blank::{Blank, BlankNewService};
use crate::{NewService, Service, ServiceExt};
#[derive(Clone)] #[derive(Clone)]
struct Srv; struct Srv;

View File

@ -1,4 +1,4 @@
use actix_service::{NewService, Service}; use crate::{NewService, Service};
use futures::{Future, Poll}; use futures::{Future, Poll};
pub type BoxedService<Req, Res, Err> = Box< pub type BoxedService<Req, Res, Err> = Box<

View File

@ -7,7 +7,8 @@ mod and_then;
mod and_then_apply; mod and_then_apply;
mod and_then_apply_fn; mod and_then_apply_fn;
mod apply; mod apply;
mod blank; pub mod blank;
pub mod boxed;
mod cell; mod cell;
mod fn_service; mod fn_service;
mod fn_transform; mod fn_transform;
@ -23,7 +24,6 @@ pub use self::and_then::{AndThen, AndThenNewService};
use self::and_then_apply::{AndThenTransform, AndThenTransformNewService}; use self::and_then_apply::{AndThenTransform, AndThenTransformNewService};
use self::and_then_apply_fn::{AndThenApply, AndThenApplyNewService}; use self::and_then_apply_fn::{AndThenApply, AndThenApplyNewService};
pub use self::apply::{Apply, ApplyNewService}; pub use self::apply::{Apply, ApplyNewService};
pub use self::blank::{Blank, BlankNewService};
pub use self::fn_service::{fn_cfg_factory, fn_factory, fn_service, FnService}; pub use self::fn_service::{fn_cfg_factory, fn_factory, fn_service, FnService};
pub use self::fn_transform::{FnNewTransform, FnTransform}; pub use self::fn_transform::{FnNewTransform, FnTransform};
pub use self::from_err::{FromErr, FromErrNewService}; pub use self::from_err::{FromErr, FromErrNewService};

View File

@ -1,5 +1,14 @@
# Changes # Changes
## [0.3.0] - 2019-02-xx
### Changed
* Use new `NewService` trait
* BoxedNewService` and `BoxedService` types moved to actix-service crate.
## [0.2.4] - 2019-02-21 ## [0.2.4] - 2019-02-21
### Changed ### Changed

View File

@ -1,5 +1,4 @@
//! Actix utils - various helper services //! Actix utils - various helper services
pub mod boxed;
mod cell; mod cell;
pub mod cloneable; pub mod cloneable;
pub mod counter; pub mod counter;