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:
Carl Lerche 2018-02-19 11:53:29 -08:00 committed by GitHub
parent 011ceed6e4
commit 942238237e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 17 additions and 1 deletions

View File

@ -25,6 +25,7 @@ members = [
"tower-filter",
"tower-mock",
"tower-rate-limit",
"tower-ready-service",
"tower-reconnect",
"tower-router",
"tower-timeout",

View File

@ -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 = "../" }

View File

View File

@ -0,0 +1,3 @@
extern crate tower;
pub use tower::ReadyService;

View File

@ -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" }

View File

@ -2,6 +2,7 @@
extern crate futures;
extern crate tower;
extern crate tower_ready_service;
pub mod either;
pub mod option;

View File

@ -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;