Commit Graph

69 Commits

Author SHA1 Message Date
Kat Marchán ad2bd945ed
docs: update changelog 2021-08-17 19:36:22 -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 26f409c525
feat(offsets): nice utility function to get an offset from a Rust callsite
Fixes: https://github.com/zkat/miette/issues/19
2021-08-17 19:18:57 -07:00
Kat Marchán 75c2312755
feat(offsets): utility function for converting from line/col to offset 2021-08-17 18:31:12 -07:00
Kat Marchán 95200366a1
feat(offsets): more utility From impls for SourceSpan 2021-08-17 18:30:38 -07:00
Kat Marchán 53074d3488
feat(protocol): add Source impls for Cow and Arc 2021-08-17 17:54:29 -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 b7deb2d002
docs: update readme oops 2021-08-17 09:05:53 -07:00
Kat Marchán f79aee63b1
0.9.0 2021-08-17 08:48:48 -07:00
Kat Marchán bdec477e3d
docs: update changelog 2021-08-17 08:48:01 -07:00
Kat Marchán acfeb9c5b0
feat(protocol): new SourceSpans with labels 2021-08-17 08:41:20 -07:00
Kat Marchán 36b86df9f5
feat(protocol): implement From<(usize, usize)> for SourceSpan 2021-08-16 23:46:32 -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 ee2e2d1ef2
0.8.1 2021-08-16 22:44:12 -07:00
Kat Marchán 02d6617898
docs: update changelog 2021-08-16 22:43:44 -07:00
Kat Marchán 698bb0eff5
docs: update readme 2021-08-16 22:41:40 -07:00
Kat Marchán 8fdf05b523
0.8.0 2021-08-16 22:25:54 -07:00
Kat Marchán 639dedc9f9
docs: update changelog 2021-08-16 22:25:12 -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
Kat Marchán 991a93619b
0.7.0 2021-08-15 18:21:03 -07:00
Kat Marchán 25bcf2d720
docs: update changelog 2021-08-15 18:20:28 -07:00
Kat Marchán 9ef0dd261f
feat(derive): improved derive support, including partial help format string support! 2021-08-15 18:15:50 -07:00
Kat Marchán 9a78a94395
fix(derive): move to plain syn to fix darling issues 2021-08-15 17:27:39 -07:00
Kat Marchán 027c3b0a94
0.6.0 2021-08-15 11:54:07 -07:00
Kat Marchán 2892a946e6
docs: update changelog 2021-08-15 11:50:07 -07:00
Kat Marchán 0e7702700d
feat(derive): added basic derive macro
This should be good for most basic use cases. More features will be added over time :)
2021-08-15 11:49:02 -07:00
Kat Marchán b8c89813b9
0.5.0 2021-08-14 13:35:11 -07:00
Kat Marchán 28d561e133
docs: update changelog 2021-08-14 13:34:57 -07:00
Kat Marchán a960136802
feat(utils): various convenience utilities for creating and working with Diagnostics 2021-08-14 13:32:22 -07:00
Kat Marchán fd0d2b12b7
0.4.0 2021-08-10 22:52:20 -04:00
Kat Marchán 0210ccab4d
doc: update changelog 2021-08-10 22:51:44 -04:00
Kat Marchán d201dde4b5
fix(reporter): fix reporter and tests... again 2021-08-10 22:47:28 -04:00
Kat Marchán 0d2e3312a4
fix(reporter): fix extra newline after header 2021-08-10 22:04:28 -04:00
Kat Marchán 02dd1f84d4
feat(protocol): Simplify protocol return values further
BREAKING CHANGE: Switched to Box instead of & for help/code return values.
2021-08-10 21:40:25 -04:00
Kat Marchán a04239cf35
0.3.1 2021-08-10 21:06:38 -04:00
Kat Marchán 0c00af7cbf
doc: update changelog 2021-08-10 21:06:16 -04:00
Kat Marchán b08e5cca62
format: cargo fmt 2021-08-10 19:21:31 -04:00
Kat Marchán 9d430b6f47
fix(reporter): fix missing newline before help text 2021-08-10 19:21:31 -04:00
Kat Marchán 0c9eeef0d0
0.3.0 2021-08-07 23:08:42 -04:00
Kat Marchán 587a802da4
docs: update changelog 2021-08-07 23:08:16 -04:00
Kat Marchán 60bdf47e29
fix(tests): updating tests 2021-08-07 23:04:04 -04:00
Kat Marchán 3584dc600c
feat(protocol): improvements to snippets API 2021-08-07 22:59:20 -04:00
Kat Marchán 80e7dabbe4
feat(protocol): help is a single Display ref now. 2021-08-07 22:57:56 -04:00
Kat Marchán 7920a2315c
feat(protocol: Severity is now optional 2021-08-07 22:54:46 -04:00
Kat Marchán 56986bbd4c
0.2.1 2021-08-05 13:28:54 -07:00
Kat Marchán 51e59269a8
docs: update changelog 2021-08-05 13:28:41 -07:00
Kat Marchán 781a51f037
fix(protocol): fix the default From<:T Diagnostic> implementation to cover more cases. 2021-08-05 13:24:37 -07:00
Kat Marchán 40133a368d
0.2.0 2021-08-05 12:41:31 -07:00