Enable futures feature

This commit is contained in:
Felix Krull 2019-06-28 20:38:41 +02:00 committed by Colin Walters
parent 2c07302097
commit 8d9aa7a857
2 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,8 @@ name = "ostree"
[dependencies]
libc = "0.2"
bitflags = "1"
fragile = { version = "0.3.0", optional = true }
futures-preview = { version = "0.3.0-alpha", optional = true }
lazy_static = "1.1"
glib = "0.8.0"
gio = "0.7.0"
@ -46,6 +48,7 @@ tempfile = "3"
[features]
dox = ["ostree-sys/dox"]
futures = ["futures-preview", "fragile", "gio/futures", "glib/futures"]
v2014_9 = ["ostree-sys/v2014_9"]
v2015_7 = ["v2014_9", "ostree-sys/v2015_7"]
v2016_4 = ["v2015_7", "ostree-sys/v2016_4"]

View File

@ -18,6 +18,10 @@ extern crate libc;
extern crate bitflags;
#[macro_use]
extern crate lazy_static;
#[cfg(feature = "futures")]
extern crate fragile;
#[cfg(feature = "futures")]
extern crate futures;
use glib::Error;