miette breaking changes

cargo

13 curated breaking changes across major versions of miette. Use this as a migration checklist before bumping dependencies.

13
changes
Breaking changes by transition
  • v5.10.0 \u2192 v6.0.0breaking

    **source-code:** Don't override provided source code (#300) ([0d5c2ce7](https://github.com/zkat/miette/commit/0d5c2ce7536b0ea205346595d8a00d00bfb6cbd2))

  • v5.10.0 \u2192 v6.0.0breaking

    **BREAKING CHANGE**: Source code is no longer overridden if it was provided by the diagnostic's own `source_code()` impl.

  • v5.10.0 \u2192 v6.0.0breaking

    **source:** use `usize` for length (#265) ([fad0e76a](https://github.com/zkat/miette/commit/fad0e76ad2e19d5cac13cf8324338aca0d623d93))

  • v5.10.0 \u2192 v6.0.0breaking

    **BREAKING CHANGE**: This changes `SourceSpan`'s length type to `usize`.

  • v5.10.0 \u2192 v6.0.0breaking

    **source:** Allow inner source type of a NamedSource to be borrowed (#254) ([1df3b1a5](https://github.com/zkat/miette/commit/1df3b1a537f2e54cd40ec45f5cd851337a22e95a))

  • v4.7.1 \u2192 v5.0.0breaking

    **theme:** restructure automatic color selection (#177) ([1816b06a](https://github.com/zkat/miette/commit/1816b06a2efcd5705dfe91147ab5651fe0b517d6))

  • v4.7.1 \u2192 v5.0.0breaking

    The default theme now prefers ANSI colors, even if RGB is supported

  • v4.7.1 \u2192 v5.0.0breaking

    `MietteHandlerOpts::ansi_colors` is removed

  • v4.7.1 \u2192 v5.0.0breaking

    `MietteHandlerOpts::rgb_color` now takes an enum that controls the color format used when color support is enabled, and has no effect otherwise.

  • v3.3.0 \u2192 v4.0.0breaking

    **colors:** treat no-color mode as no-color instead of narratable (#94) ([9dcce5f1](https://github.com/zkat/miette/commit/9dcce5f1bdd76e7564d604ab8b87bbc7caad310a))

  • v3.3.0 \u2192 v4.0.0breaking

    **BREAKING CHANGE**: NO_COLOR no longer triggers the narrated handler. Use NO_GRAPHICS instead.

  • v3.3.0 \u2192 v4.0.0breaking

    **derive:** Make derive macro `diagnostic` attribute more flexible. (#115) ([5b8b5478](https://github.com/zkat/miette/commit/5b8b5478b63e91a51fadec87c6fed3e60d192b60))

  • v3.3.0 \u2192 v4.0.0breaking

    **BREAKING CHANGE**: `diagnostic` attribute duplication will now error.

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/cargo/miette