Commit Graph

433 Commits

Author SHA1 Message Date
Kat Marchán a03bfe2e1b
docs: document new diagnostic_source feature 2022-05-05 08:56:27 -07:00
Kat Marchán edd18c8991
meta: tweak makefile 2022-05-05 08:36:28 -07:00
Matthias Beyer bc449c8426
feat(diagnostic_source): add protocol method for Diagnostic-aware source chaining (#165)
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-05-05 08:32:37 -07:00
Matthias Beyer 33c8903313
fix: cargo fmt (#168)
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-05-05 08:30:13 -07:00
Marcel Müller 2451ad6a96
docs(IntoDiagnostic): Warn of potential data loss (#161)
Fixes: https://github.com/zkat/miette/issues/160

This patch expands on the effects of using IntoDiagnostic and warns
users of potential loss of information when using it on `Diagnostic`
types.
2022-04-23 11:35:39 -07:00
Kat Marchán c05d8d354c
(cargo-release) start next development iteration 4.6.1-alpha.0 2022-04-22 19:34:19 -07:00
Kat Marchán 22de435406
(cargo-release) start next development iteration 4.6.1-alpha.0 2022-04-22 19:34:19 -07:00
Kat Marchán 82ffeef3a5
(cargo-release) version 4.6.0 2022-04-22 19:33:38 -07:00
Kat Marchán f338860584
(cargo-release) version 4.6.0 2022-04-22 19:33:38 -07:00
Kat Marchán 884feb21f3
docs: update changelog 2022-04-22 19:32:59 -07:00
Kat Marchán 1a36fa7ec8
fix(graphical): fix issue with duplicate labels when span len is 0 (#159)
Fixes: https://github.com/zkat/miette/issues/130
2022-04-22 19:31:51 -07:00
Kat Marchán 084ed138b7
feat(related): print related prefixes according to severity (#158)
Fixes: https://github.com/zkat/miette/issues/139
2022-04-22 18:55:45 -07:00
Kat Marchán 1e1d615253 feat(spans): add From shorthand for zero-length SourceSpans 2022-04-22 18:44:09 -07:00
Kat Marchán e6f5cacfa6
(cargo-release) start next development iteration 4.5.1-alpha.0 2022-04-17 22:54:19 -07:00
Kat Marchán bffb18ab11
(cargo-release) start next development iteration 4.5.1-alpha.0 2022-04-17 22:54:19 -07:00
Kat Marchán dadd31ff86
(cargo-release) version 4.5.0 2022-04-17 22:53:38 -07:00
Kat Marchán 5b457ed4fe
(cargo-release) version 4.5.0 2022-04-17 22:53:38 -07:00
Kat Marchán 0a771b7c85
docs: update changelog 2022-04-17 22:52:55 -07:00
Kat Marchán 9da62cd05d feat(label): use macro magic instead of optional flag for optional labels 2022-04-17 22:43:01 -07:00
Kat Marchán ea55f458fa feat(help): allow non-option values in #[help] fields 2022-04-17 22:43:01 -07:00
Kat Marchán 23ee3642d1
feat(labels): allow optional labels in derive macro (#153)
Fixes: https://github.com/zkat/miette/issues/110
2022-04-17 19:41:10 -07:00
Kat Marchán 45093c2f58
feat(help): update macro to allow optional help text (#152)
Fixes: https://github.com/zkat/miette/issues/148
2022-04-17 18:19:28 -07:00
Rain 5e54b29acf
feat(spans): make SourceSpan implement Copy (#151)
SourceSpan is just a pair of usizes, so it's cheap to copy.
2022-04-17 15:27:11 -07:00
Rain 97197601ee
fix(theme): set correct field in MietteHandlerOpts::ansi_colors (#150) 2022-04-13 17:21:22 -07:00
Kat Marchán bd8f8e31ae
(cargo-release) start next development iteration 4.4.1-alpha.0 2022-04-12 11:42:37 -07:00
Kat Marchán 86cdf4796f
(cargo-release) start next development iteration 4.4.1-alpha.0 2022-04-12 11:42:36 -07:00
Kat Marchán 6a0d47728a
(cargo-release) version 4.4.0 2022-04-12 11:41:52 -07:00
Kat Marchán 0103f2c4f9
(cargo-release) version 4.4.0 2022-04-12 11:41:51 -07:00
Kat Marchán db7d07ef5a
docs: update changelog 2022-04-12 11:41:14 -07:00
Kat Marchán 37cda4a3a4
fix(fmt): cargo fmt 2022-04-03 20:31:18 -07:00
Kat Marchán b98b098282
fix(clippy): misc clippy fixes 2022-04-03 18:33:51 -07:00
Kat Marchán a0b972f876
fix(docsrs): use proper module names for docsrs URLs
Fixes: https://github.com/zkat/miette/issues/147
2022-04-03 13:27:55 -07:00
Finomnis b4a9d4cd9b
feat(report): Add conversion from Report to Box<dyn Error> (#149) 2022-04-03 13:10:32 -07:00
Kat Marchán 7e750f6e9f
(cargo-release) start next development iteration 4.3.1-alpha.0 2022-03-27 15:39:36 -07:00
Kat Marchán 83ed029de2
(cargo-release) start next development iteration 4.3.1-alpha.0 2022-03-27 15:39:35 -07:00
Kat Marchán 50a3cb1fcf
(cargo-release) version 4.3.0 2022-03-27 15:38:48 -07:00
Kat Marchán 235df4bc75
(cargo-release) version 4.3.0 2022-03-27 15:38:47 -07:00
Kat Marchán 304f7ad8b1
docs: update changelog 2022-03-27 15:38:07 -07:00
Dylan Anthony 2d0054b3c9
chore(deps): Update textwrap to 0.15.0 (#143) 2022-03-27 15:11:28 -07:00
Dylan Anthony 126ffc5834
docs(readme): Fix a couple links (#141) 2022-03-27 15:07:28 -07:00
Bartek Iwańczuk 5151411ebb
feat: add fancy-no-backtrace feature (#144) 2022-03-22 12:30:52 -07:00
Christopher Durham 70e84f9a01
fix(handler): Apply MietteHandlerOpts::graphical_theme (#138)
Fixes: https://github.com/zkat/miette/issues/134
2022-03-18 16:30:00 -07:00
Christopher Durham b6a6cc9e75
feat(reporter): Allow GraphicalReportHandler to disable url display (#137) 2022-03-18 16:28:54 -07:00
Christopher Durham 209275d437
fix(colors): handler_opts.color(false) should disable color (#133) 2022-03-17 20:35:45 -07:00
Kat Marchán 77cdfc45c9
(cargo-release) start next development iteration 4.2.2-alpha.0 2022-02-25 08:51:13 -08:00
Kat Marchán b3de535292
(cargo-release) version 4.2.1 2022-02-25 08:50:16 -08:00
Kat Marchán 2adf0a3f22
(cargo-release) version 4.2.1 2022-02-25 08:50:16 -08:00
Kat Marchán 5641e8da75
docs: update changelog 2022-02-25 08:49:14 -08:00
Moritz Mœller 5d23c0d61d
fix(docs): Docs overhaul (#124)
* Fixed/formatted all intradoc links. Various other small doc fixes/typography/etc.

* Clarified semantic similarity with anyhow/eyre types/macros.

* Removed unused MietteError::SetPrinterFailure.

* README now generaed from lib.rs via `cargo readme`.

* More doc fixes, made ErrorHook type public.

* Indentation (docs).
2022-02-25 08:39:18 -08:00
Kat Marchán fa5b5fee54
fix(clippy): 1.59.0 clippy fix 2022-02-24 21:07:10 -08:00