Expand description
The inevitable catchall “utils” crate. Generally only add things here that only depend on the standard library and “core” crates.
Modules§
- command 🔒
- Helpers intended for
std::process::Commandand related structures. - iterators 🔒
- path 🔒
- reexec
- Re-execute the current process
- result_
ext 🔒 - timestamp 🔒
- tracing_
util 🔒 - Helpers related to tracing, used by main entrypoints
Structs§
- Path
Quoted Display - Helper to format a path.
Constants§
- NAME
- The name of our binary
Traits§
- Async
Command RunExt - Helpers intended for [
tokio::process::Command]. - Command
RunExt - Helpers intended for
std::process::Command. - Exit
Status Ext - Helpers intended for
std::process::ExitStatus. - Result
Ext - Extension trait for Result types that provides logging capabilities
Functions§
- collect_
until - Gather the first N items, and provide the count of the remaining items. The max count cannot be zero as that’s a pathological case.
- initialize_
tracing - Initialize tracing with the default configuration.
- iterator_
split - Given an iterator that’s cloneable, split it into two iterators at a given maximum number of elements.
- run_
main - Intended for use in
main, calls an inner function and handles errors by printing them. - try_
deserialize_ timestamp - Try to parse an RFC 3339, warn on error.