Move ReadyService to a dedicated crate. (#48)
This is the first step to resolve #44. The move will happen in two steps to avoid breaking any libs depending on this now.
This commit is contained in:
parent
011ceed6e4
commit
942238237e
|
@ -25,6 +25,7 @@ members = [
|
|||
"tower-filter",
|
||||
"tower-mock",
|
||||
"tower-rate-limit",
|
||||
"tower-ready-service",
|
||||
"tower-reconnect",
|
||||
"tower-router",
|
||||
"tower-timeout",
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
[package]
|
||||
name = "tower-ready-service"
|
||||
version = "0.1.0"
|
||||
authors = ["Carl Lerche <me@carllerche.com>"]
|
||||
publish = false
|
||||
|
||||
[dependencies]
|
||||
futures = "0.1"
|
||||
tower = { version = "0.1", path = "../" }
|
|
@ -0,0 +1,3 @@
|
|||
extern crate tower;
|
||||
|
||||
pub use tower::ReadyService;
|
|
@ -7,3 +7,4 @@ publish = false
|
|||
[dependencies]
|
||||
futures = "0.1"
|
||||
tower = { version = "0.1", path = ".." }
|
||||
tower-ready-service = { version = "0.1", path = "../tower-ready-service" }
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
extern crate futures;
|
||||
extern crate tower;
|
||||
extern crate tower_ready_service;
|
||||
|
||||
pub mod either;
|
||||
pub mod option;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
use futures::IntoFuture;
|
||||
use tower::{Service, ReadyService, NewService};
|
||||
use tower::{Service, NewService};
|
||||
use tower_ready_service::ReadyService;
|
||||
|
||||
use std::marker::PhantomData;
|
||||
|
||||
|
|
Loading…
Reference in New Issue