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:
parent
79fa52a661
commit
e09ff54567
@ -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"
|
||||
|
@ -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 };
|
Loading…
x
Reference in New Issue
Block a user