Commit Graph

54 Commits

Author SHA1 Message Date
Kat Marchán 01618289c9
(cargo-release) version 4.0.1 2022-02-17 22:28:53 -08:00
Kat Marchán 8845ee0c7b
(cargo-release) start next development iteration 4.0.1-alpha.0 2022-02-17 22:14:03 -08:00
Kat Marchán 647a6789d8
(cargo-release) version 4.0.0 2022-02-17 22:13:11 -08:00
Kyle Brown 5b8b5478b6
feat(derive): Make derive macro `diagnostic` attribute more flexible. (#115)
Fixes: #114 

* Improved defaulting

* Added correct combining logic
Added variable number of diagnostic attributes

* Error handling, testing, and docs improvements

Co-authored-by: Kyle Brown <kyleb@liquidrocketry.com>
2022-02-17 22:04:03 -08:00
Kat Marchán aecc81d9d4
(cargo-release) start next development iteration 3.3.1-alpha.0 2022-01-07 18:08:54 -08:00
Kat Marchán bfaef933dd
(cargo-release) version 3.3.0 2022-01-07 18:07:56 -08:00
Kat Marchán 9afc94a28e
(cargo-release) start next development iteration 3.2.1-alpha.0 2021-10-05 21:10:00 -07:00
Kat Marchán 20aa544279
(cargo-release) version 3.2.0 2021-10-05 21:09:20 -07:00
Kat Marchán 98ae09a0bb
(cargo-release) version 3.1.0 2021-10-01 12:10:21 -07:00
Kat Marchán f0e4071a99
(cargo-release) version 3.0.1 2021-09-26 13:03:44 -07:00
Kat Marchán eb816ee98a
(cargo-release) version 3.0.0 2021-09-22 16:38:50 -07:00
Kat Marchán addde7ce8d (cargo-release) version 3.0.0-beta.0 2021-09-22 16:34:21 -07:00
Kat Marchán 8e11baab7b feat(related): Add related diagnostics (#68)
Fixes: https://github.com/zkat/miette/issues/47
2021-09-22 16:34:21 -07:00
Kat Marchán 68a5b76745 (cargo-release) version 3.0.0-alpha.0 2021-09-22 16:34:21 -07:00
Kat Marchán f87b158b22 feat(labels): replace snippet stuff with simpler labels (#62) 2021-09-22 16:34:21 -07:00
Kat Marchán 92a3150921 fix(derive): Code is no longer required 2021-09-22 16:34:21 -07:00
Kat Marchán 7468b68567
(cargo-release) start next development iteration 2.2.1-alpha.0 2021-09-13 19:01:23 -07:00
Kat Marchán 19a194a6dd
(cargo-release) version 2.2.0 2021-09-13 19:00:44 -07:00
Cormac Relf 2fa5551c81
feat(derive): Add `#[diagnostic(forward(field_name), code(...))]` (#41) 2021-09-13 15:39:04 -07:00
Kat Marchán ea8561bd03
(cargo-release) start next development iteration 2.1.3-alpha.0 2021-09-09 20:40:10 -07:00
Kat Marchán bfaf485e3f
(cargo-release) version 2.1.2 2021-09-09 20:39:23 -07:00
Kat Marchán f4119abc9b
(cargo-release) version 2.1.1 2021-09-08 21:05:57 -07:00
Kat Marchán 1e0e3f5910
(cargo-release) version 2.1.0 2021-09-07 17:50:23 -07:00
Kat Marchán ffe1b558d0
feat(derive): make #[diagnostic] optional for enums, too 2021-09-07 17:45:30 -07:00
Kat Marchán b71b583d27
(cargo-release) start next development iteration 2.0.1-alpha.0 2021-09-04 21:55:32 -07:00
Kat Marchán 16bd3d21de
(cargo-release) version 2.0.0 2021-09-04 21:54:47 -07:00
Kat Marchán 3f9da04b86
feat(report): anyhow-ify DiagnosticReport (#35)
This PR overhauls the toplevel/main experience for `miette`. It adds a new `Report` type based on `eyre::Report` and overhauls various types to fit into this model, as well as prepare for some [future changes in Rust](https://github.com/nrc/rfcs/pull/1) that will make it possible to integrate `miette` directly with crates like `eyre` instead of having to use this specific `Report`.

As such, this PR is a major breaking change, especially for anyone using `DiagnosticReport` and company.

BREAKING CHANGES:
* `DiagnosticReport` is now just `Report`, and is a different, `eyre::Report`-like type.
* `DiagnosticResult` is now just `Result`.
* `.into_diagnostic()` now just transforms the error into a `Report`.
* `DiagnosticReportPrinter` has been replaced with `ReportHandler`
* `set_printer` has been replaced by `set_hook`
* `code` is now optional.
* `.into_diagnostic()` no longer takes a `code` argument.
* `#[diagnostic]` is now optional when deriving `Diagnostic`.
2021-09-04 21:22:46 -07:00
Kat Marchán 6a3a6eb280
(cargo-release) version 1.1.0 2021-08-29 12:49:33 -07:00
Cormac Relf 53f5d6d1d6
feat(derive): Add `#[diagnostic(transparent,forward)]` (#36)
Fixes: https://github.com/zkat/miette/issues/16
2021-08-29 12:33:16 -07:00
Kat Marchán 96ca3cc85b
1.0.1 2021-08-22 21:53:44 -07:00
Kat Marchán aa755bfb4d
1.0.0
🎉
2021-08-22 19:36:59 -07:00
Kat Marchán 61283e9efe
feat(snippets): Overhauled how snippets handle labels, sources, and messages, including the derive macro
BREAKING CHANGE: this will probably break a lot of your stuff. hopefully rustc helps
2021-08-22 19:06:47 -07:00
Kat Marchán 7e76e2dea4
feat(links): added URL linking support and automatic docs.rs link generation
Fixes: https://github.com/zkat/miette/issues/17
2021-08-22 15:42:08 -07:00
Kat Marchán 196ef51417
1.0.0-beta.1 2021-08-21 23:32:26 -07:00
Kat Marchán adf0bc933f
fix(derive): #[diagnosic(severity)] works for named and unnamed variants/structs now
Fixes: https://github.com/zkat/miette/issues/26
2021-08-21 17:18:12 -07:00
Kat Marchán 729ccd32da
0.13.0 2021-08-21 15:35:40 -07:00
Kat Marchán a65cfc7e05
0.12.0 2021-08-21 00:20:16 -07:00
Kat Marchán d675334e48
feat(reporter): fancy new reporter with unicode, colors, and multiline (#23)
Fixes: https://github.com/zkat/miette/issues/3
Fixes: https://github.com/zkat/miette/issues/5
2021-08-20 20:09:23 -07:00
Kat Marchán 8fbad1b1cd
feat(derive): format string support for help()
Fixes: https://github.com/zkat/miette/issues/7
2021-08-18 19:59:50 -07:00
Kat Marchán 3ed97050db
0.11.0 2021-08-18 00:09:33 -07:00
Kat Marchán 4d45884362
0.10.0 2021-08-17 19:36:54 -07:00
Kat Marchán 385171eb81
feat(derive): Allow anything Clone + Into<SourceSpan> to be used as a Span
Fixes: https://github.com/zkat/miette/issues/12
2021-08-17 19:30:22 -07:00
Kat Marchán 49151bb095
fix(protocol): keep the owned spans 2021-08-17 17:15:05 -07:00
Kat Marchán f390520b45
feat(protocol): reference-based DiagnosticReport! 2021-08-17 15:30:52 -07:00
Kat Marchán f79aee63b1
0.9.0 2021-08-17 08:48:48 -07:00
Kat Marchán acfeb9c5b0
feat(protocol): new SourceSpans with labels 2021-08-17 08:41:20 -07:00
Kat Marchán f704d6a9ae
fix(derive): allow unused variables for the snippets method 2021-08-16 23:10:08 -07:00
Kat Marchán 8fdf05b523
0.8.0 2021-08-16 22:25:54 -07:00
Kat Marchán f6e6acf2d2
feat(derive): Support for deriving snippet method (#18)
Fixes: #11
2021-08-16 22:20:13 -07:00
Kat Marchán 3e5ee0ee4d
fmt: cargo fmt --all 2021-08-15 21:08:53 -07:00