mirror of
https://github.com/uutils/coreutils
synced 2024-11-17 02:08:09 +00:00
uucore: Add globbing for Windows machines
This commit is contained in:
parent
99da2451ab
commit
03d6e733e4
2 changed files with 11 additions and 0 deletions
|
@ -10,6 +10,7 @@ failure_derive = { version = "0.1.1", optional = true }
|
||||||
time = { version = "0.1.40", optional = true }
|
time = { version = "0.1.40", optional = true }
|
||||||
data-encoding = { version = "^2.1", optional = true }
|
data-encoding = { version = "^2.1", optional = true }
|
||||||
libc = { version = "0.2.42", optional = true }
|
libc = { version = "0.2.42", optional = true }
|
||||||
|
wild = "1.0.1"
|
||||||
|
|
||||||
[target.'cfg(target_os = "redox")'.dependencies]
|
[target.'cfg(target_os = "redox")'.dependencies]
|
||||||
termion = "1.5"
|
termion = "1.5"
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
extern crate wild;
|
||||||
|
|
||||||
|
pub fn args() -> Box<Iterator<Item=String>> {
|
||||||
|
Box::new( wild::args().map(|s| s.into_string().unwrap()) )
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn args_os() -> Box<Iterator<Item=std::ffi::OsString>> {
|
||||||
|
Box::new( wild::args() )
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(feature = "libc")]
|
#[cfg(feature = "libc")]
|
||||||
pub extern crate libc;
|
pub extern crate libc;
|
||||||
#[cfg(feature = "winapi")]
|
#[cfg(feature = "winapi")]
|
||||||
|
|
Loading…
Reference in a new issue