Expand description
§Features
-
std Enables standard library support. When enabled, the crate cannot be used in
no_stdenvironments. -
bool_ext
- Adds
.then_ok_or_else(||{err})&.then_ok_or(err)method forbooltype
- Adds
-
print_ext
- Provides some printing helpers.
-
re_exports_tap
pub use tap
-
os_cmd Configurable command builders:
- Preconfigured cargo command structs (e.g.,
CargoDoc,CargoCmd) - Cross-platform command execution utilities
- Preconfigured cargo command structs (e.g.,
Re-exports§
pub use tap;re_exports_tap
Modules§
- bool_
ext bool_ext - Extension trait for types that can be converted into a bool.
- os_cmd
os_cmd - print_
ext print_ext
Macros§
- dbg
std - Outputs the information of the expression(s) to stderr.
- dbg_ref
- Similar to the
std::dbg!macro, but inspects values by reference without moving them. This allows debugging values without transferring ownership, while showing the underlying value’s type information (not reference types). - generate_
struct_ arr - Generates a list of tuples containing field names and their values
- get_
pkg_ name env!("CARGO_PKG_NAME")- ident_
to_ kebab_ kv - Converts an identifier to a kebab-case key and its corresponding value.
- ident_
value_ pair - Converts an identifier into a
(name, value)pair. - new_
once_ lock std - Generates a static
OnceLockvariable with the given name and type.
Functions§
- simple_
benchmark std - Runs the given function and prints the elapsed time. It supports stable Rust.