Skip to content

Releases: sonro/narrate

0.4.2

12 Jul 16:33
v0.4.2
b25a7e7
Compare
Choose a tag to compare

Changed

  • Minimum supported rust version now: 1.70.0.

Fixed

  • The use of error_from! or bail! macros added a hidden dependency on
    the anyhow crate. They now expand to call this library's re-export of
    anyhow.

0.4.1

08 Jun 08:02
v0.4.1
2960100
Compare
Choose a tag to compare

Added

  • Error::msg creation method.

Documentation

  • Add rustdoc for Error help methods.

0.4.0

24 Nov 13:59
v0.4.0
925e6b7
Compare
Choose a tag to compare

Added

  • 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.

Changed

  • [BREAKING] Seal ExitCode trait. It was only useful with CliError
    anyway. Now the API reflects this.
  • [BREAKING] Mark CliError as
    non_exhaustive
    to allow for more variants in the future.
  • Error Debug formatting is now similar to report::err_full. Now the
    library is more similar anyhow in the way Result can be used.

Documentation

  • Fixed Minimum Support Rust Version formatting in Cargo.toml.
  • Add more examples.

API docs

  • Add crate root.
  • Add report module.

ErrorWrap rustdoc

  • Fixed wrong method names.
  • Added more lazy evaluation information.
  • Updated example to be more complete.

0.3.0

19 Oct 07:31
v0.3.0
d20365a
Compare
Choose a tag to compare

Added

  • add_help and add_help_with methods for Error.
  • CliError common trait implementations.

Changed

  • Deprecate set_help and set_help_owned methods for Error type.
  • [BREAKING] Display implementation simplified for Error.
  • [BREAKING] report::err module now only prints relevant help.
  • [BREAKING] Error::downcast method no longer returns an anyhow::Result.

Testing

Add Integration Tests

  • Report module.
  • Error.
  • Chain.
  • ExitCode.
  • CliError.
  • Further wrap tests.

Documentation

  • Add minimum supported rust version: 1.61