Skip to main content

Crate v_utils_macros

Crate v_utils_macros 

Source

Macros§

graphemics
returns Vec<String> of the ways to refer to a struct name
make_df

Attribute Macros§

wrap_err
Attribute macro that injects backtrace: std::backtrace::Backtrace and spantrace: tracing_error::SpanTrace into error types, and generates constructors that auto-capture both at the call site.

Derive Macros§

CompactFormatDeprecated
Deprecated alias for CompactFormatNamed
CompactFormatMap
Dictionary-style compact format, serializing to {key=value;...} syntax
CompactFormatNamed
ConfigJsonSchema
Drop-in replacement for #[derive(schemars::JsonSchema)] on config structs that use the field: T = expr default-field-value syntax (RFC 3681), the #[settings(default = ..)] attribute, or SmartDefault’s #[default(..)].
LiveSettings
Derive macro that generates a LiveSettings struct for hot-reloading configuration. Requires Settings to be derived on the same struct first.
MyConfigPrimitives
Generates a custom serde Deserialize implementation for config deserialization with PrivateValue support.
OptionalFieldsFromVecStr
Put on a struct with optional fields, each of which implements FromStr
ScreamIt
Implements Display and FromStr for variants of an enum, using SCREAMING_SNAKE_CASE
Settings
Derive macro for application settings that integrates config files, environment variables, and CLI flags.
SettingsNested
Marks a struct as a nested settings section. Use with #[settings(flatten)] in parent.
TryParseVariants
Derives FromStr for an enum where every variant is a single-field tuple variant.
VecFieldsFromVecStr
WrapNew