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"
|
name = "actix_protobuf"
|
||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[features]
|
|
||||||
default = ["use_prost"]
|
|
||||||
|
|
||||||
use_prost = ["prost"]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bytes = "0.4"
|
bytes = "0.4"
|
||||||
futures = "0.1"
|
futures = "0.1"
|
||||||
@ -23,7 +16,7 @@ env_logger = "*"
|
|||||||
actix = "^0.5"
|
actix = "^0.5"
|
||||||
actix-web = "^0.4"
|
actix-web = "^0.4"
|
||||||
|
|
||||||
prost = { version="^0.2", optional = true }
|
prost = "^0.2"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
http = "^0.1.5"
|
http = "^0.1.5"
|
||||||
|
@ -9,13 +9,9 @@ extern crate env_logger;
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
extern crate http;
|
extern crate http;
|
||||||
|
|
||||||
#[cfg(feature="use_prost")]
|
|
||||||
extern crate prost;
|
extern crate prost;
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
#[cfg(feature="use_prost")]
|
|
||||||
#[macro_use] extern crate prost_derive;
|
#[macro_use] extern crate prost_derive;
|
||||||
|
|
||||||
#[cfg(feature="use_prost")]
|
|
||||||
mod use_prost;
|
mod use_prost;
|
||||||
#[cfg(feature="use_prost")]
|
|
||||||
pub use use_prost::{ ProtoBuf, ProtoBufResponseBuilder, ProtoBufHttpMessage };
|
pub use use_prost::{ ProtoBuf, ProtoBufResponseBuilder, ProtoBufHttpMessage };
|
Loading…
x
Reference in New Issue
Block a user