diff --git a/Cargo.toml b/Cargo.toml index 3a5a09a..578c9eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ failure_derive = { version = "0.1.1", optional = true } time = { version = "0.1.40", optional = true } data-encoding = { version = "^2.1", optional = true } libc = { version = "0.2.42", optional = true } +wild = "2.0.1" [target.'cfg(target_os = "redox")'.dependencies] termion = "1.5" diff --git a/fs.rs b/fs.rs index 39a7c47..65819af 100644 --- a/fs.rs +++ b/fs.rs @@ -25,6 +25,7 @@ use std::io::Result as IOResult; use std::path::{Component, Path, PathBuf}; use std::borrow::Cow; +#[cfg(unix)] macro_rules! has { ($mode:expr, $perm:expr) => ( $mode & ($perm as u32) != 0 diff --git a/lib.rs b/lib.rs index e391d69..dc8c3f9 100644 --- a/lib.rs +++ b/lib.rs @@ -1,3 +1,9 @@ +extern crate wild; + +pub fn args() -> impl Iterator { + wild::args() +} + #[cfg(feature = "libc")] pub extern crate libc; #[cfg(feature = "winapi")]