Releases: RAprogramm/masterror
Releases · RAprogramm/masterror
v0.5.14
Added
- Prepared the derive input structures for future
format_args!support by
introducing display specification variants for templates with arguments and
fmt = <path>handlers, along withFormatArgsSpec/FormatArgmetadata
scaffolding.
v0.5.13
Documentation
- Documented the formatter trait helpers (
TemplateFormatter::is_alternate,
TemplateFormatter::from_kind, andTemplateFormatterKind::specifier/supports_alternate)
across README variants and crate docs, including guidance on the extended
formatter table and compatibility withthiserrorv2.
v0.5.12
Tests
- Added runtime assertions covering every derive formatter variant and
validating lowercase versus uppercase rendering differences during error
formatting. - Expanded the formatter
trybuildsuite with per-formatter success cases and
new compile-fail fixtures for unsupported uppercase specifiers to guarantee
diagnostics remain descriptive.
v0.5.11
Changed
- Aligned the derive display generator with
TemplateFormatterKind, invoking the
appropriatecore::fmttrait for every placeholder variant and preserving the
defaultDisplaypath when no formatter is provided, mirroringthiserror's
behaviour.
v0.5.10
Changed
- Template parser now recognises formatter traits even when alignment, sign or
width flags precede the type specifier, constructing the matching
TemplateFormattervariant and keeping alternate (#) detection aligned with
thiserror.
Tests
- Extended parser unit tests to cover complex formatter specifiers and
additional malformed cases to guard diagnostic accuracy.
v0.5.9
Added
TemplateFormatterKindenumerating the formatter traits supported by
#[error("...")], plusTemplateFormatter::from_kind/kind()helpers for
constructing and inspecting placeholders programmatically.
Changed
- Formatter parsing now routes through
TemplateFormatterKind, ensuring lookup
tables,is_alternatehandling and downstream derives share the same
canonical representation.
Documentation
- Documented
TemplateFormatterKindusage and the new inspection helpers
across README variants.
v0.5.8
Changed
masterror::Errornow infers sources namedsourceand backtrace fields of
typestd::backtrace::Backtrace/Option<std::backtrace::Backtrace>even
without explicit attributes, matchingthiserror's ergonomics.
Tests
- Expanded derive tests to cover implicit
source/backtracedetection across
structs and enums.
v0.5.7
Added
masterror::error::templatemodule providing a parsed representation of
#[error("...")]strings and a formatter hook for future custom derives.- Internal
masterror-derivecrate powering the nativemasterror::Error
derive macro. - Template placeholders now accept the same formatter traits as
thiserror
(:?,:x,:X,:p,:b,:o,:e,:E) so existing derives keep
compiling when hexadecimal, binary, pointer or exponential formatting is
requested.
Changed
masterror::Errornow uses the in-tree derive, removing the dependency on
thiserrorwhile keeping the same runtime behaviour and diagnostics.
Documentation
- Documented formatter trait usage across README.md, README.ru.md and the
masterror::errormodule, noting compatibility withthiserrorv2 and
demonstrating programmaticTemplateFormatterinspection.
v0.5.6
Tests
- Added runtime coverage exercising every derive formatter variant (including
case-sensitive formatters) and asserted the rendered output. - Added
trybuildsuites that compile successful formatter usage and verify the
emitted diagnostics for unsupported specifiers.
v0.5.5
Fixed
- Derive formatter generation now matches on every
TemplateFormatter
variant and calls the corresponding::core::fmttrait (including the
defaultDisplaypath), mirroringthiserror's placeholder handling.