1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-01-22 23:05:56 +01:00

remove features

This commit is contained in:
kingxsp 2018-03-14 10:07:33 +08:00
parent 79fa52a661
commit e09ff54567
2 changed files with 1 additions and 12 deletions

View File

@ -7,13 +7,6 @@ authors = ["kingxsp <jin.hb.zh@outlook.com>"]
name = "actix_protobuf"
path = "src/lib.rs"
[features]
default = ["use_prost"]
use_prost = ["prost"]
[dependencies]
bytes = "0.4"
futures = "0.1"
@ -23,7 +16,7 @@ env_logger = "*"
actix = "^0.5"
actix-web = "^0.4"
prost = { version="^0.2", optional = true }
prost = "^0.2"
[dev-dependencies]
http = "^0.1.5"

View File

@ -9,13 +9,9 @@ extern crate env_logger;
#[cfg(test)]
extern crate http;
#[cfg(feature="use_prost")]
extern crate prost;
#[cfg(test)]
#[cfg(feature="use_prost")]
#[macro_use] extern crate prost_derive;
#[cfg(feature="use_prost")]
mod use_prost;
#[cfg(feature="use_prost")]
pub use use_prost::{ ProtoBuf, ProtoBufResponseBuilder, ProtoBufHttpMessage };