commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
809360416be2a3a2905c425c23cbbcad73de8a5c
Igor Gnatenko
2018-10-29T10:58:59
ci: exclude CI files PR #114
diff --git a/Cargo.toml b/Cargo.toml index 082afd0..c0cd818 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ readme = "README.md" keywords = ["directory", "recursive", "walk", "iterator"] categories = ["filesystem"] license = "Unlicense/MIT" +exclude = ["/ci/*", "/.travis.yml", "/Makefile", "/appveyor.yml"...
1
1
0
8b72d93227a8f0635c8ffdc3a3d390a192ab956a
Andrew Gallant
2018-08-25T03:20:33
windows: replace winapi ffi with winapi-util We do still need winapi for a std-library work-around.
diff --git a/Cargo.toml b/Cargo.toml index d6a4a0e..ff39c42 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,10 @@ same-file = "1.0.1" [target.'cfg(windows)'.dependencies.winapi] version = "0.3" -features = ["std", "fileapi", "winbase", "winnt"] +features = ["std", "winnt"] + +[target.'cfg(windows)'.dependenci...
3
10
39
9a29218ca6d26c9320a393d0c990778e7eb6981f
Aron Griffis
2018-08-23T00:18:48
walkdir: add option to stay on same file system This commit includes a new method, `same_file_system`, which when enabled, will cause walkdir to only descend into directories that are on the same file system as the root path. Closes #8, Closes #107
diff --git a/Cargo.toml b/Cargo.toml index c2ab187..f4acb33 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ same-file = "1" [target.'cfg(windows)'.dependencies.winapi] version = "0.3" -features = ["std", "winnt"] +features = ["std", "fileapi", "winbase", "winnt"] [dev-dependencies] docopt = "1" diff ...
5
203
56
6f72fce4315cb13f2ceb6903910a52852a12ba0b
Andrew Gallant
2018-08-22T01:41:48
path_is_symlink: fix false positive This commit fixes a bug where the first path always reported itself as as symlink via `path_is_symlink`. Partially fixes https://github.com/BurntSushi/ripgrep/issues/984
diff --git a/src/lib.rs b/src/lib.rs index 0180818..58fc2e5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -623,7 +623,7 @@ pub struct DirEntry { /// The file type. Necessary for recursive iteration, so store it. ty: FileType, /// Is set when this entry was created from a symbolic link and the user - ///...
2
28
9
7033d12ded2132000a3b6d4f5d49fe36eda9dc1b
Andrew Gallant
2018-08-22T01:30:51
deps: update docopt to 1.0
diff --git a/Cargo.toml b/Cargo.toml index 8ce8dee..25ba632 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,5 @@ [package] name = "walkdir" -# remember to update html_root_url version = "2.2.0" #:version authors = ["Andrew Gallant <jamslam@gmail.com>"] description = "Recursively walk a directory." @@ -24,7 +2...
2
1
3
40d2f56b94b8dcf980d1ba31ae334d99ab951d40
Jeremy Soller
2018-06-13T15:47:37
Fix compilation on Redox
diff --git a/src/lib.rs b/src/lib.rs index 3d17098..b65ba48 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1108,8 +1108,6 @@ impl DirEntry { #[cfg(not(any(unix, windows)))] fn from_entry(depth: usize, ent: &fs::DirEntry) -> Result<DirEntry> { - use std::os::unix::fs::DirEntryExt; - let ty = en...
1
0
5
73eb575162e9bb0e910e53f17444a177e36735fc
Ruud van Asseldonk
2018-04-09T21:35:43
add DirEntry::into_path This can avoid an allocation and copy in iterator chains that need to produce a PathBuf.
diff --git a/src/lib.rs b/src/lib.rs index 9d20478..8c8774d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -968,6 +968,15 @@ impl DirEntry { &self.path } + /// The full path that this entry represents. + /// + /// Analogous to [`path`], but moves ownership of the path. + /// + /// [`path`]: ...
1
9
0
ddac44a82aeed513f3361ebca4110504e2670d24
Andrew Gallant
2018-02-21T00:07:29
performance: fix regression This commit fixes a performance regression introduced in commit 0f4441, which aimed to fix OneDrive traversals. In particular, we added an additional stat call to every directory entry, which can be quite disastrous for performance. We fix this by being more fastidious about reusing the Met...
diff --git a/src/lib.rs b/src/lib.rs index 423ca1d..9d20478 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1005,6 +1005,20 @@ impl DirEntry { /// [`std::fs::metadata`]: https://doc.rust-lang.org/std/fs/fn.metadata.html /// [`std::fs::symlink_metadata`]: https://doc.rust-lang.org/stable/std/fs/fn.symlink_metadat...
1
15
1
e3223962fec481b72a264ab7f41846b47483354b
Andrew Gallant
2018-02-21T00:05:31
compile: clean up cfgs In some cases, we were relying on things like "not(unix)" to mean "windows" or "not(windows)" to mean "unix". Instead, we should split this in three cases: unix, windows or not(unix or windows).
diff --git a/src/lib.rs b/src/lib.rs index 3a1df69..423ca1d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -631,7 +631,8 @@ pub struct DirEntry { /// The underlying inode number (Unix only). #[cfg(unix)] ino: u64, - /// The underlying metadata (Windows only). + /// The underlying metadata (Windows onl...
1
46
4
44a5dfe6f7a64ec2d8685e8d2b2409a55b7902d5
Michael Lamparski
2018-02-10T18:35:49
doc: improve stdout in contents_first example A big potential question on the reader's mind when reviewing these docs is "what will the paths returned by the iterator be relative to?" This is the one example on the page which shows output that could potentially answer that question, and to only see filenames is ne...
diff --git a/src/lib.rs b/src/lib.rs index 29df0c9..3a1df69 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -423,10 +423,10 @@ impl WalkDir { /// } /// /// // foo - /// // abc - /// // qrs - /// // tuv - /// // def + /// // foo/abc + /// // foo/abc/qrs + /// // foo/abc/tuv + /// // fo...
1
8
8
2863f281e794ef0a819c45d6afce5fddaad1b31c
Andrew Gallant
2018-02-02T03:50:55
windows: more carefuly is_dir checking This fixes a bug where a symlink was followed even if the user did not request it. Namely, on Windows, a symlink can be interpreted as both a symlink and a directory, given our new is_dir checking.
diff --git a/src/lib.rs b/src/lib.rs index a97aecf..29df0c9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -800,10 +800,11 @@ impl IntoIter { if self.opts.follow_links && dent.file_type().is_symlink() { dent = itry!(self.follow(dent)); } - if dent.is_dir() { + let is_normal_dir...
1
4
3
dc4c1ccea153419b92d41787fa34009dfa2f85e1
Andrew Gallant
2018-02-02T03:49:59
windows: use entry file type Using fs::metadata will always read through a link, and we want to preserve the type of the original entry.
diff --git a/src/lib.rs b/src/lib.rs index 254e85a..a97aecf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1059,12 +1059,15 @@ impl DirEntry { #[cfg(not(unix))] fn from_entry(depth: usize, ent: &fs::DirEntry) -> Result<DirEntry> { let path = ent.path(); + let ty = ent.file_type().map_err(|err| {...
1
4
1
0f4441f9bc3908f8e3e58888c11504cf6b5ea0f2
Andrew Gallant
2018-02-02T02:08:16
windows: fix OneDrive traversals This commit fixes a bug on Windows where walkdir refused to traverse directories that resided on OneDrive via its "file on demand" strategy. The specific bug is that Rust's standard library treats a reparse point (which is what OneDrive uses) as distinct from a file or directory, which...
diff --git a/Cargo.toml b/Cargo.toml index 2dca9f7..556f34a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,6 +19,10 @@ appveyor = { repository = "BurntSushi/walkdir" } [dependencies] same-file = "1" +[target.'cfg(windows)'.dependencies.winapi] +version = "0.3" +features = ["std", "winnt"] + [dev-dependencies] do...
2
41
7
e2b898329f64f71db06a5a0049fed5e22888aa42
Andrew Gallant
2018-02-01T22:01:08
traversal: more robust error handling This fixes a bug in walkdir that happened on Windows when following symlinks. It was triggered when opening a handle to the symlink failed. In particular, this resulted in the two stacks in the walkdir iterator getting out of sync. At some point, this tripped a panic when popping ...
diff --git a/src/lib.rs b/src/lib.rs index 8808692..07f7b7a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -851,13 +851,15 @@ impl IntoIter { }); list = DirList::Closed(entries.into_iter()); } - self.stack_list.push(list); if self.opts.follow_links { let ance...
1
3
1
b03670ee30719163f6c074498c5d17180c883c6c
Garrett Berg
2018-01-31T01:24:28
errors: keep context when converting to io::Error This commit tweaks the `From<walkdir::Error> for io::Error` implementation to always retain the current context when constructing the `io::Error`. This differs from the previous implementation in that the original raw I/O error is no longer returned. To compensa...
diff --git a/src/lib.rs b/src/lib.rs index 053ce1c..8808692 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1282,12 +1282,13 @@ impl<P> FilterEntry<IntoIter, P> where P: FnMut(&DirEntry) -> bool { /// case, there is no underlying IO error. /// /// To maintain good ergonomics, this type has a -/// `impl From<Error> for ...
1
43
14
9775f531be71074bdd5bf5025365f8e6e9efb110
Jason Grlicky
2018-01-17T13:58:56
docs: fix a couple broken links
diff --git a/src/lib.rs b/src/lib.rs index 9289714..053ce1c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,7 +20,7 @@ yielded by the iterator. Finally, the [`Error`] type is a small wrapper around [`std::io::Error`] with additional information, such as if a loop was detected while following symbolic links (not enabl...
1
2
2
791d6034ccf70f5bda964c0a244c96af0e56ff99
Igor Gnatenko
2017-12-31T17:51:18
deps: bump quickcheck to 0.6 and rand to 0.4
diff --git a/Cargo.toml b/Cargo.toml index fcd9cfa..3a27dfb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ same-file = "1" [dev-dependencies] docopt = "0.8" -quickcheck = { version = "0.4", default-features = false } -rand = "0.3" +quickcheck = { version = "0.6", default-features = false } +rand = "0.4"...
1
2
2
286bb1f3aad4e22173c5b7ba87eb30ca2c3afe6a
Andrew Gallant
2017-10-21T22:54:21
doc: formatting Doc strings on public items should always start with a short one sentence description. This is for readability purposes, and also to make the display reasonable in rustdoc.
diff --git a/src/lib.rs b/src/lib.rs index ebb0252..9289714 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1116,9 +1116,10 @@ impl fmt::Debug for DirEntry { } } -/// A recursive directory iterator that skips entries. Returned by calling -/// [`.filter_entry()`] on an `IntoIter`, which is formed by calling -/// [`...
1
4
3
a9f41405c0fac03d0119c6cbfc38443040cd53ea
Andrew Gallant
2017-10-21T12:19:18
deps: remove winapi and kernel32 These are extraneous at this point. The Windows specific logic is now encapsulated in the same-file crate.
diff --git a/Cargo.toml b/Cargo.toml index 298b41d..56e5f1b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,10 +19,6 @@ appveyor = { repository = "BurntSushi/walkdir" } [dependencies] same-file = "1" -[target.'cfg(windows)'.dependencies] -kernel32-sys = "0.2" -winapi = "0.2" - [dev-dependencies] docopt = "0.8" q...
2
0
8
bfd917fdfd640113e42953bba59a102ecf98e61d
Andrew Gallant
2017-10-21T04:07:32
deps: upgrade to same-file 1.0
diff --git a/Cargo.toml b/Cargo.toml index 11c87a7..34d2876 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ travis-ci = { repository = "BurntSushi/walkdir" } appveyor = { repository = "BurntSushi/walkdir" } [dependencies] -same-file = "0.1.1" +same-file = "1" [target.'cfg(windows)'.dependencies] kern...
1
1
1
3d4c9f7eca53cd6bd56306d7a1b2c4478cac8acb
Andrew Gallant
2017-10-21T03:50:13
symlinks: optimize check loop on Windows Broadly speaking, this commit is an attempt to fix this issue: https://github.com/BurntSushi/ripgrep/issues/633 It was reported that symlink checking was taking a long amount of time, and that one possible way to fix this was to reduce number of times a file descriptor is open...
diff --git a/src/lib.rs b/src/lib.rs index e5db08b..c43734d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -126,7 +126,7 @@ use std::path::{Path, PathBuf}; use std::result; use std::vec; -use same_file::is_same_file; +use same_file::Handle; #[cfg(unix)] pub use unix::DirEntryExt; @@ -356,6 +356,12 @@ impl WalkDir ...
1
67
8
5ce6b1071682784e4f8d01a739e4455cf3089a7b
Andrew Gallant
2017-10-21T02:35:59
style: switch from try! to ?
diff --git a/src/lib.rs b/src/lib.rs index ccb886b..e5db08b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -821,22 +821,21 @@ impl IntoIter { } fn follow(&self, mut dent: DirEntry) -> Result<DirEntry> { - dent = try!(DirEntry::from_link(self.depth, - dent.path().to...
1
12
13
2b4e508c75b9635a8328778051953c63674f2e64
Andrew Gallant
2017-10-21T02:32:52
doc: touchups
diff --git a/src/lib.rs b/src/lib.rs index 9ac73f8..ccb886b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -164,16 +164,17 @@ pub type Result<T> = ::std::result::Result<T, Error>; /// A builder to create an iterator for recursively walking a directory. /// /// Results are returned in depth first fashion, with directori...
1
13
9
a5de1ec0c8d9467e47e4ea266fb44213174009f8
Andrew Gallant
2017-10-21T02:32:42
unix: actually export DirEntryExt
diff --git a/src/lib.rs b/src/lib.rs index 6f26847..9ac73f8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -128,8 +128,13 @@ use std::vec; use same_file::is_same_file; -#[cfg(unix)] mod unix; -#[cfg(test)] mod tests; +#[cfg(unix)] +pub use unix::DirEntryExt; + +#[cfg(test)] +mod tests; +#[cfg(unix)] +mod unix; ///...
1
7
2
45d2f69885ae2f3d607c5d5490848cc10912d474
Andrew Gallant
2017-10-21T02:21:10
formatting: misc and wrap to 80 cols
diff --git a/examples/walkdir.rs b/examples/walkdir.rs index a0853e0..5d5fa06 100644 --- a/examples/walkdir.rs +++ b/examples/walkdir.rs @@ -49,10 +49,10 @@ fn main() { let maxd = args.flag_max_depth.unwrap_or(::std::usize::MAX); let dir = args.arg_dir.clone().unwrap_or(".".to_owned()); let mut walkdir =...
4
111
74
9c4adadc4fcb79baa721b2c7f8f88688024e3b1e
Andrew Gallant
2017-10-21T01:34:26
symlink: rename symbolic_link to symlink Fixes #80
diff --git a/src/lib.rs b/src/lib.rs index 7a24469..c3da203 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,3 @@ -#![doc(html_root_url = "https://docs.rs/walkdir/1.0.7")] /*! Crate `walkdir` provides an efficient and cross platform implementation of recursive directory traversal. Several options are exposed to c...
1
7
4
bc0ff47394875e31e098e88b36f7711a5fb26fa1
Andrew Gallant
2017-10-21T01:34:02
examples: upgrade to docopt 0.8
diff --git a/Cargo.toml b/Cargo.toml index 8466780..11c87a7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,8 @@ kernel32-sys = "0.2" winapi = "0.2" [dev-dependencies] -docopt = "0.7" +docopt = "0.8" quickcheck = { version = "0.4", default-features = false } rand = "0.3" -rustc-serialize = "0.3" +serde = "1...
2
10
6
f49cb038ac5459405a9d7f879c1410fe79451ab5
Andrew Gallant
2017-10-07T12:21:18
fix formatting
diff --git a/src/lib.rs b/src/lib.rs index bece8d0..7a24469 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -896,7 +896,7 @@ impl DirEntry { /// # Errors /// /// Similar to [`std::fs::metadata`], returns errors for path values that the program does not - /// have permissions to access or if the path does ...
1
27
21
64e50c886084df03e079d8dd9689880d7150a871
Niv Kaminer
2017-10-01T17:59:20
add `io_error` to inspect the underlying `io::Error`
diff --git a/src/lib.rs b/src/lib.rs index ac78668..bece8d0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1249,6 +1249,61 @@ impl Error { self.depth } + /// Inspect the underlying [`io::Error`] if there is one. + /// + /// [`None`] is returned if the [`Error`] doesn't correspond to an [`io::Erro...
1
55
0
f1f9a35f29a8ed0430e7aaaa933fba0d744c9b8e
opilarium
2017-09-22T11:41:23
executing try_main function is useless in no_run blocks
diff --git a/src/lib.rs b/src/lib.rs index 53a4309..ac78668 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -41,10 +41,6 @@ for entry in WalkDir::new("foo") { } # Ok(()) # } -# -# fn main() { -# try_main().unwrap(); -# } ``` Or, if you'd like to iterate over all entries and ignore any errors that may @@ -75,10 +7...
1
0
28
fcbb831799c6692c22807de49839f11bde612b1f
opilarium
2017-09-22T11:20:11
text annotation is better
diff --git a/src/lib.rs b/src/lib.rs index 0d700cc..344b471 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,7 +9,7 @@ efficiently skip descending into directories. To use this crate, add `walkdir` as a dependency to your project's `Cargo.toml`: -```ignore +```text [dependencies] walkdir = "1" ```
1
1
1
c4af8e617302063c2f33e9709dcd99c4f0819b6f
Jérémie Lawson
2017-08-03T22:30:16
Use doc from std::os::unix::fs::DirEntryExt for trait walkdir::unix::DirEntryExt. Moved trait implementation for DirEntry in module unix.
diff --git a/src/lib.rs b/src/lib.rs index 6ed71aa..0d700cc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -132,6 +132,7 @@ use std::vec; use same_file::is_same_file; +#[cfg(unix)] mod unix; #[cfg(test)] mod tests; /// Like try, but for iterators that return [`Option<Result<_, _>>`]. @@ -1021,15 +1022,6 @@ impl D...
2
16
9
9d55d29fcb71f95cdba74eb05aac94aadc70fe57
Ashley Mannix
2017-08-03T22:27:26
Move DirEntry::ino method to an extension trait Fixes #46
diff --git a/src/lib.rs b/src/lib.rs index fd848d5..6ed71aa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -962,13 +962,6 @@ impl DirEntry { self.depth } - /// Returns the underlying `d_ino` field in the contained `dirent` - /// structure. - #[cfg(unix)] - pub fn ino(&self) -> u64 { - se...
1
9
7
107750f24e1a173c4dfd2b7bb6e495a375e0dfb8
Jérémie Lawson
2017-08-03T22:19:09
Make WalkDir Send + Sync Fixes #41
diff --git a/src/lib.rs b/src/lib.rs index e9c2eda..fd848d5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -126,7 +126,6 @@ use std::fmt; use std::fs::{self, FileType, ReadDir}; use std::io; use std::ffi::OsStr; -use std::ffi::OsString; use std::path::{Path, PathBuf}; use std::result; use std::vec; @@ -252,7 +251,7 ...
2
17
3
079d1456eb7ba94888a4ce2b82bc814393df7ff4
Thayne McCombs
2017-07-31T11:08:59
Derive Debug for public structs Fixes #34
diff --git a/src/lib.rs b/src/lib.rs index c0808dc..e9c2eda 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -241,6 +241,7 @@ pub type Result<T> = ::std::result::Result<T, Error>; /// /// Note that when following symbolic/soft links, loops are detected and an /// error is reported. +#[derive(Debug)] pub struct WalkDir {...
1
23
0
a4cc6e88e7d4b10d6cbf47a29bcf03b8bdef1405
Tshepang Lekhonkhobe
2017-07-24T21:57:14
doc: do not repeat the efficient-ness of it all Also, define 'efficient'
diff --git a/src/lib.rs b/src/lib.rs index c684427..c0808dc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -83,10 +83,10 @@ for entry in WalkDir::new("foo").follow_links(true) { [`follow_links`]: struct.Walkdir.html#method.follow_links -# Example: skip hidden files and directories efficiently on unix +# Example: skip...
1
2
2
d28c399997fabee2c6821c83ae23b7e0f87b2d5f
Josh Holmer
2017-06-28T13:06:25
Document why unwraps won't fail
diff --git a/src/lib.rs b/src/lib.rs index 13cfe99..c684427 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -587,7 +587,8 @@ impl Iterator for IntoIter { self.pop(); continue; } - match self.stack_list.last_mut().unwrap().next() { + // Unwrap is safe here...
1
9
3
3cc8e9ecc9b9524087aad2e8579896e010c3eac9
Alisha
2017-07-09T07:32:12
Correct walkdir docs
diff --git a/src/lib.rs b/src/lib.rs index 0db8894..13cfe99 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -163,8 +163,10 @@ pub type Result<T> = ::std::result::Result<T, Error>; /// A builder to create an iterator for recursively walking a directory. /// /// Results are returned in depth first fashion, with directorie...
1
7
2
2ca0b130406025562613be6168f757c034b042c1
Ashley
2017-07-17T12:23:47
Added links to documentation (#71)
diff --git a/src/lib.rs b/src/lib.rs index 757e56c..0db8894 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,11 +16,16 @@ walkdir = "1" # From the top -The `WalkDir` type builds iterators. The `DirEntry` type describes values yielded by the iterator. -Finally, the `Error` type is a small wrapper around `std::io::Er...
1
82
33
86238d6dde441380d3f7a0b9fc6834b5bae187b6
Jérémie Lawson
2017-07-06T13:05:56
Removed is_same_file deprecated function.
diff --git a/src/lib.rs b/src/lib.rs index dad0414..757e56c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -122,12 +122,7 @@ use std::path::{Path, PathBuf}; use std::result; use std::vec; -#[deprecated(since="1.0.7", note="please use `is_same_file` from `same_file` crate instead.")] -pub fn is_same_file<P, Q>( path1: ...
1
1
6
f4de7b969ad46f32f92d15790909771dbbd1163e
Jérémie Lawson
2017-06-22T19:13:39
Remove re-export of is_same_file Added a wrapper around this function that is deprecated. Fixes #43.
diff --git a/src/lib.rs b/src/lib.rs index 3d91a77..dad0414 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -122,7 +122,12 @@ use std::path::{Path, PathBuf}; use std::result; use std::vec; -pub use same_file::is_same_file; +#[deprecated(since="1.0.7", note="please use `is_same_file` from `same_file` crate instead.")] +...
1
6
1
378cb0742ea9f67c7de97dee56372d684100e40a
Andy Gauge
2017-07-03T19:00:55
Extended documentation to include Errors section for `Iter` (`Iterator::next()`), `FilterEntry` (`Iterator::next()`), and `DirEntry::metadata()`
diff --git a/src/lib.rs b/src/lib.rs index 1cf9dcf..3d91a77 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -526,7 +526,12 @@ pub struct DirEntry { impl Iterator for IntoIter { type Item = Result<DirEntry>; - + /// Advances the iterator and returns the next value. + /// + /// # Errors + /// + /// If ...
1
18
2
f216fcb1e50267fbe30dd0b5a6c09698110488c3
Andy Gauge
2017-07-03T19:48:31
Added links to .into_iter() and .filter_entry() into respective Types.
diff --git a/src/lib.rs b/src/lib.rs index e17b745..1cf9dcf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -428,11 +428,13 @@ impl IntoIterator for WalkDir { /// /// A value with this type must be constructed with the [`WalkDir`] type, which /// uses a builder pattern to set options such as min/max depth, max open file...
1
7
2
71ceae7fc021da8a92eb69312b3ecd16cd2ba017
Jakub Chłapiński
2017-07-15T16:54:56
WalkDir sorter should accept whole dir entries instead of just file names (#70) change sort_by types This changes the sort_by comparator function to accept a pair of `&DirEntry`s, which permits the caller more flexibility with sorting. Fixes #44, Fixes #45
diff --git a/examples/walkdir.rs b/examples/walkdir.rs index c64f4ad..d5d98d9 100644 --- a/examples/walkdir.rs +++ b/examples/walkdir.rs @@ -51,7 +51,7 @@ fn main() { .min_depth(mind) .max_depth(maxd); if args.flag_sort { - walkdir = walkdir.sort_by(|a,b| a.cmp(b)...
3
15
21
009be825aa3c91b3370450f9521c13c831769fae
meven
2017-07-15T16:49:46
Add links to other walkdir items in WalkDirIterator docs (#73)
diff --git a/src/lib.rs b/src/lib.rs index 8df84ea..feafba4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -609,9 +609,11 @@ impl IntoIter { /// } /// ``` /// - /// You may find it more convenient to use the `filter_entry` iterator + /// You may find it more convenient to use the [`filter_entry`] iter...
1
18
6
c55dc9f4d522da1709dd02d8f40b0675a148ae71
Alisha Aneja
2017-07-01T13:05:06
Add links to other walkdir items in WalkDir docs Fixes #29
diff --git a/src/lib.rs b/src/lib.rs index 441b34c..8df84ea 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -162,7 +162,7 @@ pub type Result<T> = ::std::result::Result<T, Error>; /// /// This type implements `IntoIterator` so that it may be used as the subject /// of a `for` loop. You may need to call `into_iter` explic...
1
12
8
938b0fa064e0b96eaebef5598ceeb0266219ca2e
Martin Sehnoutka
2017-06-16T12:15:58
Use `?` in docs instead of unwrapping Fixes: #25
diff --git a/src/lib.rs b/src/lib.rs index ce5c76a..441b34c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,11 +28,18 @@ the path for each entry: ```rust,no_run use walkdir::WalkDir; +# use walkdir::Error; +# fn try_main() -> Result<(), Error> { for entry in WalkDir::new("foo") { - let entry = entry.unwrap();...
1
63
14
4e4c9c4f58a499acb0e38cf97377a4e0eec6a665
Jonathan Soo
2017-06-29T14:21:28
add example for contents_first Fixes #26
diff --git a/src/lib.rs b/src/lib.rs index 008d8b2..ce5c76a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -316,6 +316,56 @@ impl WalkDir { /// When `yes` is `true`, the iterator yields the contents of a directory /// before yielding the directory itself. This is useful when, e.g. you /// want to recursivel...
1
50
0
532e56d2116a06e7f9f6f56d22dd0e5b507b1233
Yufeng Wang
2017-06-29T02:20:35
point to IntoIter's `filter_entry` instead
diff --git a/src/lib.rs b/src/lib.rs index 6c76b8c..008d8b2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -82,7 +82,7 @@ for entry in walker.filter_entry(|e| !is_hidden(e)) { } ``` -[`filter_entry`]: struct.FilterEntry.html#method.filter_entry +[`filter_entry`]: struct.IntoIter.html#method.filter_entry */ #[cfg(win...
1
1
1
a88d02cde4b57e51e5cbfa3612494de0bdd4aaa1
Yufeng Wang
2017-06-29T00:34:05
Add links to DirEntry docs. Fixes #27
diff --git a/src/lib.rs b/src/lib.rs index e1f3664..6c76b8c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -62,7 +62,7 @@ for entry in WalkDir::new("foo").follow_links(true) { # Example: skip hidden files and directories efficiently on unix -This uses the `filter_entry` iterator adapter to avoid yielding hidden files...
1
21
8
92cec6508689df0b5b2cadb6614c86789f8e48ff
Yufeng Wang
2017-06-29T00:59:25
add links to IntoIter and FilterEntry docs
diff --git a/src/lib.rs b/src/lib.rs index b38544d..e1f3664 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -342,11 +342,13 @@ impl IntoIterator for WalkDir { /// An iterator for recursively descending into a directory. /// -/// A value with this type must be constructed with the `WalkDir` type, which +/// A value with...
1
7
2
133a11d5388185fa4afd80d758621ccf20a08b06
Thayne McCombs
2017-06-25T04:52:20
Add badges for travis-ci and appveyor to Cargo.toml Fixes #35 Doesn't add CI for OSX
diff --git a/Cargo.toml b/Cargo.toml index a83fdbf..8466780 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,10 @@ keywords = ["directory", "recursive", "walk", "iterator"] categories = ["filesystem"] license = "Unlicense/MIT" +[badges] +travis-ci = { repository = "BurntSushi/walkdir" } +appveyor = { repositor...
1
4
0
032f669a4bb7e24d07f59c56423114b158d22d27
Michal Budzynski
2017-06-14T14:33:45
Added html_root_url attribute
diff --git a/Cargo.toml b/Cargo.toml index 66039c7..a83fdbf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,6 @@ [package] name = "walkdir" +# remember to update html_root_url version = "1.0.7" #:version authors = ["Andrew Gallant <jamslam@gmail.com>"] description = "Recursively walk a directory." diff --git ...
2
2
0
debdf7e5654fe65daecb598e20f928bf2aa14045
Michal Budzynski
2017-06-14T14:16:34
Renamed IterFilterEntry to FilterEntry
diff --git a/src/lib.rs b/src/lib.rs index 479295e..30c5cc7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -420,9 +420,9 @@ pub trait WalkDirIterator: Iterator { /// /// Note that entries skipped with `min_depth` and `max_depth` are not /// passed to this predicate. - fn filter_entry<P>(self, predicate: ...
1
5
5
6a031649b9f950911b756dfb64f17b1ea8076ab3
Michal Budzynski
2017-06-14T14:21:37
Added categories to Cargo.toml
diff --git a/Cargo.toml b/Cargo.toml index 34a7b5b..66039c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,7 @@ homepage = "https://github.com/BurntSushi/walkdir" repository = "https://github.com/BurntSushi/walkdir" readme = "README.md" keywords = ["directory", "recursive", "walk", "iterator"] +categories = ["f...
1
1
0
8d2b9840b43696472c11c7326a53c4be980b4e28
Michal Budzynski
2017-06-14T14:20:18
Renamed Iter to IntoIter
diff --git a/src/lib.rs b/src/lib.rs index 8be0806..479295e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -326,10 +326,10 @@ impl WalkDir { impl IntoIterator for WalkDir { type Item = Result<DirEntry>; - type IntoIter = Iter; + type IntoIter = IntoIter; - fn into_iter(self) -> Iter { - Iter { + ...
2
9
9
c43a71f5360797d2894c0d4d28449bfcf7cfb365
mcharsley
2017-05-08T23:03:58
Added contents_first option (#19) Added contents_first option Added ability to yield the contents of the directory before the directory itself Fixes #18
diff --git a/examples/walkdir.rs b/examples/walkdir.rs index 4497487..c64f4ad 100644 --- a/examples/walkdir.rs +++ b/examples/walkdir.rs @@ -20,6 +20,7 @@ Options: --tree Show output as a tree. --sort Sort the output. -q, --ignore-errors Ignore errors. + -d, --depth ...
3
110
3
9f25bb2ec7406bb3052f11c9e15b1cb0e1770e13
Petr Zemek
2017-03-20T17:55:35
Fix typos in comments. "ergnomics" -> "ergonomics"
diff --git a/src/lib.rs b/src/lib.rs index c882e83..ce8101e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -329,7 +329,7 @@ pub trait WalkDirIterator: Iterator { /// recently yielded directory. This means any remaining entries in that /// directory will be skipped (including sub-directories). /// - /// N...
1
2
2
d25d673a0a7aecd897ae6946987b02c0b6d831a7
Andrew Gallant
2017-01-09T02:40:24
bump same-file dep to 0.1.1
diff --git a/Cargo.toml b/Cargo.toml index ce76417..d827628 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["directory", "recursive", "walk", "iterator"] license = "Unlicense/MIT" [dependencies] -same-file = "0.1" +same-file = "0.1.1" [target.'cfg(windows)'.dependencies] kernel32-sys = "0...
1
1
1
6a49e22bd2996ca58814a74d1a02cacbb2154180
Andrew Gallant
2017-01-09T01:39:36
Expose inode number on DirEntry. This passes through the inode number from fs::DirEntry.
diff --git a/src/lib.rs b/src/lib.rs index 48e80c5..c882e83 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -489,6 +489,9 @@ pub struct DirEntry { follow_link: bool, /// The depth at which this entry was generated relative to the root. depth: usize, + /// The underlying inode number (Unix only). + #[cf...
1
56
0
88566c4eb477505fd15169ee5399fe14dc238894
Andrew Gallant
2017-01-09T00:11:27
Use new same-file crate. This replaces the homegrown `is_same_file` implementation with a reusable implementation from an external crate.
diff --git a/Cargo.toml b/Cargo.toml index 0eaa6bd..9652c69 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,9 @@ readme = "README.md" keywords = ["directory", "recursive", "walk", "iterator"] license = "Unlicense/MIT" +[dependencies] +same-file = "0.1" + [target.'cfg(windows)'.dependencies] kernel32-sys = "...
4
11
271
373278952ff96fd01287c6ac89f1bf4b74c6490d
Andrew Gallant
2016-12-06T00:53:43
Fix bug reading root symlink. When given a root like `foo` where `foo` is a symlink, it should always be followed. This behavior is consistent with `foo/`, which will also be followed. See also: https://github.com/BurntSushi/ripgrep/issues/256
diff --git a/src/lib.rs b/src/lib.rs index d74867c..221ae7b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -198,7 +198,8 @@ impl WalkDir { /// Create a builder for a recursive directory iterator starting at the /// file path `root`. If `root` is a directory, then it is the first item /// yielded by the iter...
2
30
14
c40025c5f330cd69207064cb2b5f4aea6681b277
Andrew Gallant
2016-11-24T15:14:59
Use docs.rs in documentation link. Fixes #14
diff --git a/Cargo.toml b/Cargo.toml index 9ee367b..d2bb446 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "walkdir" version = "1.0.1" #:version authors = ["Andrew Gallant <jamslam@gmail.com>"] description = "Recursively walk a directory." -documentation = "http://burntsushi.net/rustdoc/walkdir/" +...
1
1
1
da8c02d4d5118cd79d1c5a26ecea5d4b5300c4e1
Kevin Butler
2016-10-31T22:52:10
Remove reference to a bug which has been fixed Since the minimum supported rustc version has this fix[1] we can remove the reference. [1] https://github.com/rust-lang/rust/pull/31630
diff --git a/src/lib.rs b/src/lib.rs index ffc6dea..d74867c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -251,12 +251,6 @@ impl WalkDir { /// When enabled, the yielded `DirEntry` values represent the target of /// the link while the path corresponds to the link. See the `DirEntry` /// type for more detail...
1
0
6
737af4f2d52874ac87b146bb7938c37b6532e698
Andrew Gallant
2016-10-29T16:27:41
Expose `is_same_file` function. A case could be made for splitting this out into a separate crate, but I'm fine with keeping it part of walkdir for now.
diff --git a/src/lib.rs b/src/lib.rs index 6e8761a..958dad4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -100,7 +100,7 @@ use std::path::{Path, PathBuf}; use std::result; use std::vec; -use same_file::is_same_file; +pub use same_file::is_same_file; mod same_file; #[cfg(test)] mod tests; diff --git a/src/same_fil...
2
26
3
7b73fde9723941f5d4c1d71250bcde5d6834ed3d
Andrew Gallant
2016-09-16T21:54:43
Stop storing the underlying fs::DirEntry. An fs::DirEntry is in fact quite large---over 256 bytes. This results in a lot of time spent memmoving it around. This does result in a small performance regression on Windows for callers that ask for the `metadata` of a directory entry.
diff --git a/examples/walkdir.rs b/examples/walkdir.rs index 774214c..4497487 100644 --- a/examples/walkdir.rs +++ b/examples/walkdir.rs @@ -78,7 +78,9 @@ fn main() { out.flush().unwrap(); wout!(eout, "ERROR: {}", err); } - Ok(dent) => wout!(out,...
2
8
17
9360266301978a79532fd83df10e95e71c7b0bd3
Andrew Gallant
2016-09-16T14:32:25
Force internal iterator to inline.
diff --git a/src/lib.rs b/src/lib.rs index 6b6176b..53770fb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -646,6 +646,7 @@ impl DirList { impl Iterator for DirList { type Item = Result<fs::DirEntry>; + #[inline(always)] fn next(&mut self) -> Option<Result<fs::DirEntry>> { match *self { ...
1
1
0
3fa7b1b2f013e3bda63c2e7443893e42a7f3264e
Andrew Gallant
2016-08-31T00:07:56
Fix bug with sort_by. The bug was an over-eager `panic!` to catch a case that shouldn't happen. In fact, it's OK if it does happen. Add a regression test.
diff --git a/src/lib.rs b/src/lib.rs index 012cac6..6b6176b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -89,7 +89,7 @@ for entry in walker.filter_entry(|e| !is_hidden(e)) { #[cfg(test)] extern crate quickcheck; #[cfg(test)] extern crate rand; -use std::cmp::min; +use std::cmp::{Ordering, min}; use std::error; use...
2
39
17
28c1fc720762f9a2183e68e4f42a9911d62c6382
Jos van den Oever
2016-06-13T15:37:18
Add ability to sort the walked entries This adds a test and extends the walkdir example with --sort. A simple benchmark on a directory with one million files (warm cache) shows: walkdir ~ 2.0s walkdir --sort ~ 2.8s walkdir ~ | sort 19.5s
diff --git a/examples/walkdir.rs b/examples/walkdir.rs index eff0d26..774214c 100644 --- a/examples/walkdir.rs +++ b/examples/walkdir.rs @@ -18,6 +18,7 @@ Options: --max-depth NUM Maximum depth. -n, --fd-max NUM Maximum open file descriptors. [default: 32] --tree Show output as a t...
3
67
4
7fc4ba589e17fc89ba1c4b26a1c6adc471476286
Patrick Barrett
2016-06-14T03:09:13
only depend on windows deps on windows
diff --git a/Cargo.toml b/Cargo.toml index dc40948..43ddca4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ readme = "README.md" keywords = ["directory", "recursive", "walk", "iterator"] license = "Unlicense/MIT" -[dependencies] +[target.'cfg(windows)'.dependencies] kernel32-sys = "0.2" winapi = "0.2"
1
1
1
b110cd8454ddd07d6e7fd5dbf242236038bcd580
Andrew Gallant
2015-11-08T02:02:58
bump kernel32-sys
diff --git a/Cargo.toml b/Cargo.toml index 37282cb..20457ce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["directory", "recursive", "walk", "iterator"] license = "Unlicense/MIT" [dependencies] -kernel32-sys = "0.1" +kernel32-sys = "0.2" winapi = "0.2" [dev-dependencies]
1
1
1
bdd4893e65fe1b69fd2a84a4a28d2492e757b315
Andrew Gallant
2015-11-05T23:23:58
Remove libc in favor of winapi.
diff --git a/Cargo.toml b/Cargo.toml index 7fa364b..2f35eb7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,8 @@ keywords = ["directory", "recursive", "walk", "iterator"] license = "Unlicense/MIT" [dependencies] -libc = "0.1" +kernel32-sys = "0.1" +winapi = "0.2" [dev-dependencies] docopt = "0.6" diff --g...
3
25
22
9eb2abd4bb9f0c5c2c9e2c2121469c3cf7052cff
Andrew Gallant
2015-09-27T05:41:58
update docs
diff --git a/src/lib.rs b/src/lib.rs index 0e2bca9..f2eff11 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -631,7 +631,7 @@ impl DirEntry { /// /// Note that this *always* returns the path reported by the underlying /// directory entry, even when symbolic links are followed. To get the - /// target path,...
1
1
1
0964a448b7e128f603f4e78e049e84d25a0670d7
Andrew Gallant
2015-09-27T05:27:18
Tweak when max depth pruning happens.
diff --git a/src/lib.rs b/src/lib.rs index a86ce46..0e2bca9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -488,6 +488,12 @@ impl Iterator for Iter { } while !self.stack_list.is_empty() { self.depth = self.stack_list.len(); + if self.depth > self.opts.max_depth { + ...
1
7
1
188c06d927f25432f2ac7c113bd454099d024bd7
Andrew Gallant
2015-09-27T05:21:12
Only skip when entry is a directory.
diff --git a/src/lib.rs b/src/lib.rs index a1ee043..a86ce46 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -779,7 +779,9 @@ impl<I, P> Iterator for IterFilterEntry<I, P> Some(result) => itry!(result), }; if !(self.predicate)(&dent) { - self.it.skip_current_dir(); +...
1
3
1
ca0702cd6281ba91df24fdd5625bdd9552c991c5
Andrew Gallant
2015-09-27T05:06:33
Don't interpret TOML as Rust, please.
diff --git a/src/lib.rs b/src/lib.rs index 577c491..a1ee043 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,7 +8,7 @@ efficiently skip descending into directories. To use this crate, add `walkdir` as a dependency to your project's `Cargo.toml`: -``` +```ignore [dependencies] walkdir = "0.1" ```
1
1
1
4918e08926987c161683d6aa779f05dd9d632efe
Andrew Gallant
2015-09-24T00:50:27
Test min/max depth and skip_current_dir.
diff --git a/src/tests.rs b/src/tests.rs index 7e46392..b8c6263 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -11,7 +11,7 @@ use rand::{self, Rng}; use super::{DirEntry, WalkDir, WalkDirError, WalkDirIter}; -#[derive(Clone, Eq, Ord, PartialEq, PartialOrd)] +#[derive(Clone, Debug, Eq, Ord, PartialEq, PartialOrd)]...
1
136
1
aae97f52d61491dede3b6cbfc401b13c28d00da5
Andrew Gallant
2015-09-23T01:38:42
remove print
diff --git a/src/tests.rs b/src/tests.rs index 1a37b82..7e46392 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -85,7 +85,6 @@ impl Tree { } fn create_in<P: AsRef<Path>>(&self, parent: P) -> io::Result<()> { - println!("{:?}\n-------------------------", self); let parent = parent.as_ref(); ...
1
0
1
a25285e59d10e41bc3eafb57c767c2f9979fd55c
Andrew Gallant
2015-09-23T01:35:03
Custom DirEntry type. QuickCheck action.
diff --git a/Cargo.toml b/Cargo.toml index cbcd346..ae51f7a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,5 +15,6 @@ libc = "0.1" [dev-dependencies] docopt = "0.6" +quickcheck = "0.2" rand = "0.3" rustc-serialize = "0.3" diff --git a/examples/walkdir.rs b/examples/walkdir.rs index 25e5c19..abdd50f 100644 --- a/...
5
631
195
ec511ef90281444e80b7b530996c74a7d5810d6e
Andrew Gallant
2015-09-21T01:10:38
Start testing.
diff --git a/Cargo.toml b/Cargo.toml index 5dbd93f..cbcd346 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,4 +15,5 @@ libc = "0.1" [dev-dependencies] docopt = "0.6" +rand = "0.3" rustc-serialize = "0.3" diff --git a/examples/walkdir.rs b/examples/walkdir.rs index f248a91..25e5c19 100644 --- a/examples/walkdir.rs ...
4
376
179
76e3ffdccf975f4ef4170a948272898f8e0778c1
Andrew Gallant
2015-09-20T16:29:56
more polishing, support depths
diff --git a/examples/walkdir.rs b/examples/walkdir.rs index b615fec..f248a91 100644 --- a/examples/walkdir.rs +++ b/examples/walkdir.rs @@ -15,6 +15,7 @@ Usage: walkdir [options] old <dir> Options: + -h, --help -L, --follow-links Follow symlinks. -d, --depth Traverse contents of directo...
2
157
38
3e5a22f3bd8dafc9a0c931bcc963ae93214122bf
Andrew Gallant
2015-09-20T06:00:12
another tweak
diff --git a/src/lib.rs b/src/lib.rs index b32878c..a164e65 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -380,8 +380,10 @@ where P: AsRef<Path>, Q: AsRef<Path> { s.as_os_str().encode_wide().chain(Some(0)).collect() } - let i1 = try!(file_info(try!(open_read_attr(&p1)))); - let i2 = try!(file_info(t...
1
4
2
07d4aef89bffe3f1286384246cae904fc254f8c2
Andrew Gallant
2015-09-20T05:59:27
small touchup
diff --git a/src/lib.rs b/src/lib.rs index 7bd2f29..b32878c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -311,7 +311,7 @@ fn is_same_file<P, Q>( p2: Q, ) -> io::Result<bool> where P: AsRef<Path>, Q: AsRef<Path> { - // My hope is that most of this gets moved into `std::sys::windows`. + // My hope is that mos...
1
3
13
eaf24e463cddd4e7cb2d56893d13d174b4910664
Andrew Gallant
2015-09-20T05:47:07
initial prototype, basic functionality
diff --git a/Cargo.toml b/Cargo.toml index e90eeda..5dbd93f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,3 +9,10 @@ repository = "https://github.com/BurntSushi/walkdir" readme = "README.md" keywords = ["directory", "recursive", "walk", "iterator"] license = "MIT/Apache-2.0" + +[dependencies] +libc = "0.1" + +[dev-...
3
477
0
82669e0a817aa1b79aeda8478e81fb2497036f25
Amy Kwan
2026-02-19T21:43:44
Update minimum libc for AIX.
diff --git a/core/Cargo.toml b/core/Cargo.toml index 01014bb..16f4f98 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -19,7 +19,10 @@ smallvec = "1.6.1" petgraph = { version = "0.6.0", optional = true } backtrace = { version = "0.3.60", optional = true } -[target.'cfg(unix)'.dependencies] +[target.'cfg(target...
1
4
1
692b159dacdb5f0bf8c7df13d3f2e9e774f1cf67
Amy Kwan
2026-01-20T19:23:02
[AIX] Revert changes to define timespec_tv_nsec_t as 32-bit.
diff --git a/core/src/thread_parker/unix.rs b/core/src/thread_parker/unix.rs index f1a184f..5953cf3 100644 --- a/core/src/thread_parker/unix.rs +++ b/core/src/thread_parker/unix.rs @@ -15,16 +15,12 @@ use libc; use std::time::Instant; use std::{thread, time::Duration}; -// AIX: libc::timespec.tv_nsec is a 32-bit c_...
1
1
5
b2e41463d67987bfa509cdcff3d1fe838941f469
Alisa Sireneva
2025-12-28T09:19:39
core: Adjust confusing documentation of SpinWait::spin
diff --git a/core/src/spinwait.rs b/core/src/spinwait.rs index a57f4c1..5b664a7 100644 --- a/core/src/spinwait.rs +++ b/core/src/spinwait.rs @@ -38,8 +38,8 @@ impl SpinWait { /// Spins until the sleep threshold has been reached. /// - /// This function returns whether the sleep threshold has been reached...
1
2
2
0a7174333c694df1452f246cb28c0b321fb5c96e
valadaptive
2025-12-15T07:16:58
Use postcard instead of bincode in tests
diff --git a/Cargo.toml b/Cargo.toml index 4fffef8..ca18a09 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,7 @@ lock_api = { path = "lock_api", version = "0.4.14" } rand = "0.8.3" # Used when testing out serde support. -bincode = "1.3.3" +postcard = {version = "1.1.3", default-features = false, features = ["...
6
15
14
6bfca3693e4cf91643297426ffd0dd79b2d83bd4
Amy Kwan
2025-12-12T19:07:22
[AIX] Define timespec_tv_nsec_t as 32-bit.
diff --git a/core/src/thread_parker/unix.rs b/core/src/thread_parker/unix.rs index 5953cf3..f1a184f 100644 --- a/core/src/thread_parker/unix.rs +++ b/core/src/thread_parker/unix.rs @@ -15,12 +15,16 @@ use libc; use std::time::Instant; use std::{thread, time::Duration}; +// AIX: libc::timespec.tv_nsec is a 32-bit c_...
1
5
1
260dddede3f353462006f3036b03d0f6b85e3fef
Amanieu d'Antras
2025-11-19T02:23:34
Fix test_issue_129 under Miri This ensures all spawned threads are waiting on the condvar before continuing with the test. Fixes #501
diff --git a/src/condvar.rs b/src/condvar.rs index 7123f73..91da781 100644 --- a/src/condvar.rs +++ b/src/condvar.rs @@ -886,7 +886,7 @@ mod tests { #[test] fn test_issue_129() { - let locks = Arc::new((Mutex::new(()), Condvar::new())); + let locks = Arc::new((Mutex::new(0), Condvar::new())); ...
1
5
2
fbfe854e8b5407f7a898c64fb6d296c5e965c877
Ralf Jung
2025-11-13T16:09:51
word_lock: use AtomicPtr (with polyfill for operations missing on old Rust)
diff --git a/core/src/word_lock.rs b/core/src/word_lock.rs index ac4f0a2..c13d111 100644 --- a/core/src/word_lock.rs +++ b/core/src/word_lock.rs @@ -10,9 +10,38 @@ use crate::thread_parker::{ThreadParker, ThreadParkerT, UnparkHandleT}; use core::{ cell::Cell, mem, ptr, - sync::atomic::{fence, AtomicUsize,...
1
52
17
b04ad9735dbe4e6387a57963f0b930f87ab3230d
Ralf Jung
2025-11-13T16:11:34
condvar test: remove outdated comment
diff --git a/src/condvar.rs b/src/condvar.rs index 7818a14..7123f73 100644 --- a/src/condvar.rs +++ b/src/condvar.rs @@ -877,7 +877,6 @@ mod tests { // Wait for the thread to get into wait() MutexGuard::bump(&mut g); // Yield, so the other thread gets a chance to do something. - ...
1
0
1
0b5585a17f35be7ffc9e5fc332082258a9fff7d4
Matthijs Brobbel
2025-09-30T14:10:06
Replace `doc_auto_cfg` with `doc_cfg`
diff --git a/lock_api/src/lib.rs b/lock_api/src/lib.rs index cbcc42a..bb342c7 100644 --- a/lock_api/src/lib.rs +++ b/lock_api/src/lib.rs @@ -86,7 +86,7 @@ //! requires the `alloc` crate to be present. #![no_std] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #![warn(missing_...
1
1
1
345cf7a0eb7f0ac25e6e50679649d48a03f548a4
Benoît du Garreau
2025-09-21T21:20:44
Switch from `windows-targets` to `windows-link`
diff --git a/core/Cargo.toml b/core/Cargo.toml index c243fea..7152408 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -26,7 +26,7 @@ libc = "0.2.95" redox_syscall = "0.5" [target.'cfg(windows)'.dependencies] -windows-targets = "0.52.0" +windows-link = "0.2.0" [features] nightly = [] diff --git a/core/src/...
2
8
6
a7d328e9c40cfbcb6578977c40b531d21a1c3263
Aaron Kutch
2025-09-10T20:22:31
do not use elision on Miri even if feature is enabled
diff --git a/src/elision.rs b/src/elision.rs index a4e2e57..5a59fa6 100644 --- a/src/elision.rs +++ b/src/elision.rs @@ -27,6 +27,7 @@ pub trait AtomicElisionExt { pub fn have_elision() -> bool { cfg!(all( feature = "hardware-lock-elision", + not(miri), any(target_arch = "x86", target_arc...
1
3
0
ed4ae932cef1fb9e6e84fb50358a2556c14c4fd5
Sola
2025-08-05T07:50:42
Replace winapi with windows-sys in benchmark crate
diff --git a/benchmark/Cargo.toml b/benchmark/Cargo.toml index 37a2b65..37146bf 100644 --- a/benchmark/Cargo.toml +++ b/benchmark/Cargo.toml @@ -14,4 +14,4 @@ nightly = ["parking_lot/nightly"] deadlock_detection = ["parking_lot/deadlock_detection"] [target.'cfg(windows)'.dependencies] -winapi = { version = "0.3", f...
3
22
17
b6300714e94e724b0a8b7c3d35ff6a17ee896782
Sola
2025-08-05T03:21:06
Cargo fmt
diff --git a/benchmark/src/args.rs b/benchmark/src/args.rs index c31853d..4c4064d 100644 --- a/benchmark/src/args.rs +++ b/benchmark/src/args.rs @@ -46,12 +46,9 @@ fn print_usage(names: &[&str], error_msg: Option<String>) -> ! { } fn parse_num(names: &[&str], name: &str, value: &str) -> usize { - value.parse().u...
3
14
28
9ce871337a429fb1948058d1c84c735eebb8e71f
Sola
2025-08-05T03:20:04
Clippy fix
diff --git a/benchmark/src/args.rs b/benchmark/src/args.rs index 846528b..c31853d 100644 --- a/benchmark/src/args.rs +++ b/benchmark/src/args.rs @@ -35,7 +35,7 @@ impl Iterator for ArgRange { fn print_usage(names: &[&str], error_msg: Option<String>) -> ! { if let Some(error) = error_msg { - println!("{}"...
3
14
17
a8ea26645b0e1439ff170874e94d8d1a6ecedc96
Sola
2025-08-05T03:15:03
Move sources for binaries to a conventional location
diff --git a/benchmark/Cargo.toml b/benchmark/Cargo.toml index c470b5d..37a2b65 100644 --- a/benchmark/Cargo.toml +++ b/benchmark/Cargo.toml @@ -9,14 +9,6 @@ parking_lot = {path = ".."} seqlock = "0.2" libc = "0.2" -[[bin]] -name = "mutex" -path = "src/mutex.rs" - -[[bin]] -name = "rwlock" -path = "src/rwlock.rs" -...
4
5
12
79e4a90626a1682b039f3b65490d2f1f8b854160
Sola
2025-08-05T02:58:23
Always benchmark std RwLock for comparison
diff --git a/benchmark/src/rwlock.rs b/benchmark/src/rwlock.rs index bb58fa9..3b24a59 100644 --- a/benchmark/src/rwlock.rs +++ b/benchmark/src/rwlock.rs @@ -355,8 +355,16 @@ fn run_all( seconds_per_test, test_iterations, ); + run_benchmark_iterations::<std::sync::RwLock<f64>>( + num_wri...
1
9
1