[Unstable]? Psshhh, imma give you that thing.
With Cargo:
toml
[dependencies]
walker = "^1.0.0"
```rust use walker::walk;
extern crate walker;
match walk(path) { Err(e) => panic!(), Ok(iter) => { for entry in iter { println!("{}", entry); } } } ```
This library started out immediately at 1.0, so any breaking change will bump the major and you can thus be sure that it won't break your code.
This library will track Rust stable. I don't have the free time to track nightly, but you're welcome to contribute!
Licensed under [Apache 2.0] or [MIT], at your option.
Code was heavily inspired from the version in the Rust source code (there's not too many ways to write a directory recursor, you know).
The #[test]
was copied directly from the afore-mentioned source, and is
therefore Copyright © The Rust Project Developers.
Written by Félix Saparelli and [contributors].