BurntSushi / walkdir

Rust library for walking directories recursively.
The Unlicense
1.24k stars 107 forks source link

only depend on windows deps on windows #7

Closed azdle closed 7 years ago

azdle commented 8 years ago

As far as I can tell these are only used for windows. With these changes it still builds and works on linux for me. Not tested on any other platform.

azdle commented 8 years ago

That option doesn't work with the cargo that comes with 1.3.0 :/

Feel free to just close this if you're not okay with upping the required version of rust and I can just use a fork or something.

newpavlov commented 7 years ago

I think this should be merged and published. In ripgrep dependency graph as far as I can see only this crate and mmap do not use windows related crates as optional dependencies. (upd: oh, I see, this will be merged in 1.0)

P.S.: Also I think it's worth to add "requires Rust stable 1.8 or greater" to readme.

BurntSushi commented 7 years ago

@newpavlov Yes, this is a breaking change. I'll merge it when I'm ready to release the next semver incompatible release.

newpavlov commented 7 years ago

Small note: danburkert published memmap v0.5.0 with optional winapi dependencies. So it would be cool after publishing of the next walkdir release with this PR to update ripgrep dependencies too.

BurntSushi commented 7 years ago

OK, this is merged and now part of walkdir 1.0.0. Yay!

BurntSushi commented 7 years ago

@newpavlov Sadly, there's one dep remaining that needs to be updated, but it's out of my hands: https://github.com/ruuda/thread-id/pull/3

BurntSushi commented 7 years ago

@newpavlov Even more sadly, the regex crate still supports Rust 1.3, so we can't actually make this work for ripgrep until the next semver bump of regex comes out, which should actually be pretty soon. Once that happens, then I think we are good to go.