1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-23 22:51:07 +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
## Added
* Added boxed NewService and Service.
## Changed
* Added `Config` argument to `NewService` trait.

View File

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

View File

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

View File

@ -7,7 +7,8 @@ mod and_then;
mod and_then_apply;
mod and_then_apply_fn;
mod apply;
mod blank;
pub mod blank;
pub mod boxed;
mod cell;
mod fn_service;
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_fn::{AndThenApply, AndThenApplyNewService};
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_transform::{FnNewTransform, FnTransform};
pub use self::from_err::{FromErr, FromErrNewService};

View File

@ -1,5 +1,14 @@
# 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
### Changed

View File

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