Enable futures feature
This commit is contained in:
1 parent
2c07302097
commit
8d9aa7a857
2 files changed
+7
No files matched your search
@@ -31,6 +31,8 @@ name = "ostree"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
bitflags = "1"
|
bitflags = "1"
|
||||||
|
fragile = { version = "0.3.0", optional = true }
|
||||||
|
futures-preview = { version = "0.3.0-alpha", optional = true }
|
||||||
lazy_static = "1.1"
|
lazy_static = "1.1"
|
||||||
glib = "0.8.0"
|
glib = "0.8.0"
|
||||||
gio = "0.7.0"
|
gio = "0.7.0"
|
||||||
@@ -46,6 +48,7 @@ tempfile = "3"
|
|||||||
|
|
||||||
[features]
|
[features]
|
||||||
dox = ["ostree-sys/dox"]
|
dox = ["ostree-sys/dox"]
|
||||||
|
futures = ["futures-preview", "fragile", "gio/futures", "glib/futures"]
|
||||||
v2014_9 = ["ostree-sys/v2014_9"]
|
v2014_9 = ["ostree-sys/v2014_9"]
|
||||||
v2015_7 = ["v2014_9", "ostree-sys/v2015_7"]
|
v2015_7 = ["v2014_9", "ostree-sys/v2015_7"]
|
||||||
v2016_4 = ["v2015_7", "ostree-sys/v2016_4"]
|
v2016_4 = ["v2015_7", "ostree-sys/v2016_4"]
|
||||||
|
|||||||
@@ -18,6 +18,10 @@ extern crate libc;
|
|||||||
extern crate bitflags;
|
extern crate bitflags;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate lazy_static;
|
extern crate lazy_static;
|
||||||
|
#[cfg(feature = "futures")]
|
||||||
|
extern crate fragile;
|
||||||
|
#[cfg(feature = "futures")]
|
||||||
|
extern crate futures;
|
||||||
|
|
||||||
use glib::Error;
|
use glib::Error;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user