All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Minimum supported rust version now: 1.70.0.
- The use of
error_from!
orbail!
macros added a hidden dependency on theanyhow
crate. They now expand to call this library's re-export ofanyhow
.
0.4.1 - 2023-06-08
Error::msg
creation method.
- Add rustdoc for
Error
help methods.
0.4.0 - 2022-11-24
- Features for conditional compilation of separate utilities. See #12.
- All features enabled by default [report, error, cli-error, anyhow]. See #12.
cicheck
shell script for quickly checking if repo will pass CI checks.anyhow
error reporting.
- [BREAKING] Seal
ExitCode
trait. It was only useful withCliError
anyway. Now the API reflects this. - [BREAKING] Mark
CliError
asnon_exhaustive
to allow for more variants in the future. Error
Debug
formatting is now similar toreport::err_full
. Now the library is more similar anyhow in the wayResult
can be used.
- Fixed Minimum Support Rust Version formatting in
Cargo.toml
. - Add more examples.
- Add crate root.
- Add
report
module.
- Fixed wrong method names.
- Added more lazy evaluation information.
- Updated example to be more complete.
0.3.0 - 2022-10-19
add_help
andadd_help_with
methods forError
.CliError
common trait implementations.
- Deprecate
set_help
andset_help_owned
methods forError
type. - [BREAKING]
Display
implementation simplified forError
. - [BREAKING]
report::err
module now only prints relevant help. - [BREAKING]
Error::downcast
method no longer returns ananyhow::Result
.
- Report module.
Error
.Chain
.ExitCode
.CliError
.- Further
wrap
tests.
- Add minimum supported rust version: 1.61
0.2.0 - 2022-09-29
- Re-export anyhow crate.
- Seal trait so it cannot be implemented for user's types.
- Lazily evaluated method renamed
wrap_with
. - Method
wrap
is no longer lazily evaluated. - Adding help is now done through the method
add_help
and lazy versionadd_help_with
.
- [BREAKING] Fix public API typo for
Error
methodroute_cause
toroot_cause
.
0.1.3 - 2022-09-28
error_from
macro copied fromanyhow::anyhow
.bail
macro copied fromanyhow::bail
.Chain
type for iterating through wrapped errors.- Re-export colored crate as narrate publicly depends on their features.
- Re-export
Color
from colored for use inreport::status
.
anyhow::Chain
type not used as return type ofError::chain
method.
- Add rustdoc for the crate's public API.
0.1.2 - 2022-09-15
- Multiple
Error
help messages. - Wrapping a
Result
with anError
.
0.1.1 - 2022-09-15
- Console status and error messaging with
report::status
andreport::err
. Error
methods delegating to inneranyhow::Error
.- Conversion from
Error
toanyhow::Error
. - More robust test-suite.
0.1.0 - 2022-09-14
Error
type to wrap aroundanyhow::Error
with a help message.ErrorWrap
trait to add context to errors.Result
convince type.ExitCode
trait for sysexits.h program exit codes.