rust-gamedig/VERSIONS.md
Tom 5e7e010d24
[Crate] Add rich error type (#80)
* Add rich error type with source and backtrace

Adds a rich error type that will take a backtrace and allow capturing
the source of the error. The best way to use this is with the included
helpers that will automatically capture the backtrace and convert the
source error:

```
GDRichError::packet_bad_from_into("Reason packet was bad")
```

* [Crate] Bump MSRV to 1.65.0

This is required for backtraces in rich errors.

* Remove leftover debug logging

* [Errors] Replace variant overloads with single .rich method on kind enum

This overhaul replaces the exhaustive impls of each variant as multiple
methods on the rich error type with a singular .rich() method on the
kind enum. This consumes the variant and converts it to a rich error
with a source (.into() can be used if a source is not needed).

I also took the liberty of replacing all usages with the this new method
as I saw fit (adding various error messages) and converting a few
PacketBad errors to TypeParse errors when they are the result of parse
failing.

* Fix problem with rustdoc

* Remove BadGame's owned string

* Rename GDError to GDErrorKind

* Rename GDRichError to GDError

* Remove error impl from GDErrorKind

* Fix tests not passing

* Use error context everywhere map_err is used

* Improve GDError display formatter

* Add tests for new error type
2023-08-05 12:36:48 +03:00

449 B

MSRV (Minimum Supported Rust Version)

Current: 1.65.0

Places to update:

  • Cargo.toml
  • README.md
  • .github/workflows/ci.yml
  • .pre-commit-config.yaml

rustfmt version

Current: 1.6.0

Places to update:

  • .rustfmt.toml
  • The nightly rust version

The nightly rust version

The toolchain version used to run rustfmt in CI

Current: nightly-2023-07-09

Places to update:

  • .github/workflows/ci.yml
  • .pre-commit-config.yaml