mirror of
https://github.com/uutils/findutils.git
synced 2026-06-27 14:28:55 -04:00
main
A `-printf` field width could panic two ways: a width above `u16::MAX` reached
`core::fmt`'s `{:>width$}`, which caps the width argument at `u16::MAX` and
panics ("Formatting argument out of range"); and a width above `usize::MAX` was
`.unwrap()`-ed after a failed parse. Make `parse_format_width` fallible and
reject both — an unparseable (too-large-for-`usize`) width, and any width above
`u16::MAX` — with a graceful error instead of aborting.
findutils
Rust implementation of GNU findutils: xargs, find, locate and updatedb.
The goal is to be a full drop-in replacement of the original commands.
Run the GNU testsuite on rust/findutils:
bash util/build-gnu.sh
# To run a specific test:
bash util/build-gnu.sh tests/misc/help-version.sh
Comparing with GNU
Build/run with BFS
bfs is a variant of the UNIX find command that operates breadth-first rather than depth-first.
bash util/build-bfs.sh
# To run a specific test:
bash util/build-bfs.sh posix/basic
For more details, see https://github.com/uutils/findutils-tracking/
Description
Languages
Rust
97.2%
Python
2.2%
Shell
0.6%