Crates.io | argmax |
lib.rs | argmax |
version | 0.3.1 |
source | src |
created_at | 2022-01-23 12:06:40.202604 |
updated_at | 2022-09-04 13:09:46.744919 |
description | Rust library to deal with 'argument too long' errors |
homepage | https://github.com/sharkdp/argmax |
repository | https://github.com/sharkdp/argmax |
max_upload_size | |
id | 519643 |
size | 34,324 |
argmax
is a library that allows Rust applications to avoid Argument list too long errors (E2BIG
) by providing a std::process::Command
wrapper with a
fn try_arg<S: AsRef<OsStr>>(&mut self, arg: S) -> io::Result<&mut Self>
function that returns a proper Err
or if arg
would overflow the maximum size.
This library draws inspiration from the following sources. The implementation is based on
the corresponding functionality in bfs
[1].
xargs --show-limits
Licensed under either of
at your option.