Start taking out futures feature
This commit is contained in:
1 parent
241806b757
commit
3e70feb75f
4 files changed
+21
-29
No files matched your search
@@ -18,12 +18,6 @@ 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;
|
||||
|
||||
// code generated by gir
|
||||
#[rustfmt::skip]
|
||||
@@ -35,26 +29,33 @@ pub use crate::auto::*;
|
||||
|
||||
// handwritten code
|
||||
mod checksum;
|
||||
pub use crate::checksum::*;
|
||||
|
||||
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||
mod collection_ref;
|
||||
mod functions;
|
||||
#[cfg(any(feature = "v2019_3", feature = "dox"))]
|
||||
mod kernel_args;
|
||||
mod object_name;
|
||||
mod repo;
|
||||
#[cfg(any(feature = "v2018_2", feature = "dox"))]
|
||||
mod repo_checkout_at_options;
|
||||
mod se_policy;
|
||||
pub use crate::checksum::*;
|
||||
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||
pub use crate::collection_ref::*;
|
||||
|
||||
mod functions;
|
||||
pub use crate::functions::*;
|
||||
|
||||
#[cfg(any(feature = "v2019_3", feature = "dox"))]
|
||||
mod kernel_args;
|
||||
#[cfg(any(feature = "v2019_3", feature = "dox"))]
|
||||
pub use crate::kernel_args::*;
|
||||
|
||||
mod object_name;
|
||||
pub use crate::object_name::*;
|
||||
|
||||
mod repo;
|
||||
pub use crate::repo::*;
|
||||
|
||||
#[cfg(any(feature = "v2018_2", feature = "dox"))]
|
||||
mod repo_checkout_at_options;
|
||||
#[cfg(any(feature = "v2018_2", feature = "dox"))]
|
||||
pub use crate::repo_checkout_at_options::*;
|
||||
|
||||
mod se_policy;
|
||||
pub use crate::se_policy::*;
|
||||
|
||||
// tests
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
#[cfg(any(feature = "v2016_4", feature = "dox"))]
|
||||
use crate::RepoListRefsExtFlags;
|
||||
use crate::{Checksum, ObjectName, ObjectType, Repo};
|
||||
#[cfg(feature = "futures")]
|
||||
use futures::future;
|
||||
use gio;
|
||||
use gio_sys;
|
||||
use glib;
|
||||
@@ -11,8 +9,6 @@ use glib::Error;
|
||||
use glib::IsA;
|
||||
use glib_sys;
|
||||
use ostree_sys;
|
||||
#[cfg(feature = "futures")]
|
||||
use std::boxed::Box as Box_;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::path::Path;
|
||||
use std::{mem::MaybeUninit, ptr};
|
||||
@@ -225,7 +221,6 @@ impl Repo {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "futures")]
|
||||
pub fn write_content_async_future<P: IsA<gio::InputStream> + Clone + 'static>(
|
||||
&self,
|
||||
expected_checksum: Option<&str>,
|
||||
@@ -306,7 +301,6 @@ impl Repo {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "futures")]
|
||||
pub fn write_metadata_async_future(
|
||||
&self,
|
||||
objtype: ObjectType,
|
||||
|
||||
Reference in new issue
Block a user