Expand description
§Features
-
all All available features enabled
-
std Enables standard library support. When enabled, the crate cannot be used in
no_std
environments. -
ext_traits Additional trait extensions:
BoolExt
- Adds.ok_or_else()
method forbool
type- Re-exports
Pipe
andTap
traits fromtap
crate
-
tiny_container Compact string (<=N: Inline(Stack), >N: Overflow to Heap):
TString<const N: usize>
type alias forTinyString<[u8; N]>
Formattable
trait- Enables
format
support forTString
- Enables
IntoBoxedStr
trait- Adds
.into_boxed_str()
conversion
- Adds
-
os_cmd Configurable command builders:
- Preconfigured cargo command structs (e.g.,
CargoDoc
,CargoCmd
) - Cross-platform command execution utilities
- Preconfigured cargo command structs (e.g.,
Modules§
- os_cmd
os_cmd
- tiny_
container tiny_container
- TString & TinyVec
- traits
ext_traits
- Provides BoolExt(
.ok_or_else()
)
Macros§
- dbg
std
- Outputs the information of the expression(s) to stderr.
- dbg_ref
- Similar to the
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 os_cmd
- Converts an identifier to a kebab-case key and its corresponding value.
- new_
once_ lock std
- Generates a static
OnceLock
variable with the given name and type.
Functions§
- simple_
benchmark std
- Runs the given function and prints the elapsed time. It supports stable Rust.