Kat Marchán
8ccda047e0
docs: update changelog
2022-11-23 16:55:50 -08:00
Kat Marchán
d5fbb3409c
fix(license): fix mangled license text to improve recognition
...
Fixes: https://github.com/zkat/miette/issues/225
2022-11-23 16:37:22 -08:00
Benjamin Lee
8b56d277ef
fix(graphical): Fix panic with span extending past end of line ( #221 )
...
Fixes : #215
This also changes the behavior with spans including a CRLF line-ending.
Before the panic bug was introduced, these were rendered with the CRLF
being two visual columns wide. Now, any span extending past the EOL is
treated as including one extra visual column.
2022-11-23 16:35:13 -08:00
Daniel Rivas
c88f0b5aa0
fix(derive): elide lifetimes in derived functions ( #226 )
2022-11-21 09:51:10 -08:00
Sean Lynch
c857595e1a
feat(SourceCode): Implement SourceCode for Vec<u8> ( #216 )
2022-11-06 17:42:33 -08:00
Kat Marchán
3e25fd5b86
(cargo-release) start next development iteration 5.4.2-alpha.0
2022-10-28 16:21:53 -07:00
Kat Marchán
e5171e6054
(cargo-release) start next development iteration 5.4.2-alpha.0
2022-10-28 16:21:52 -07:00
Kat Marchán
2173ca5b2a
(cargo-release) version 5.4.1
2022-10-28 16:21:11 -07:00
Kat Marchán
fc68191efa
(cargo-release) version 5.4.1
2022-10-28 16:21:11 -07:00
Kat Marchán
a0eed0eeee
docs: update changelog
2022-10-28 16:20:58 -07:00
Benjamin Lee
b8810ee3d8
fix(graphical): Fix panic with zero-width span at end of line ( #204 )
...
This was introduced in 196c09ce7a , and is
a simple off-by-one error.
2022-10-28 16:20:10 -07:00
Kat Marchán
622e09da93
(cargo-release) start next development iteration 5.4.1-alpha.0
2022-10-28 16:16:26 -07:00
Kat Marchán
4ac7cb2d9a
(cargo-release) start next development iteration 5.4.1-alpha.0
2022-10-28 16:16:26 -07:00
Kat Marchán
721f780e21
(cargo-release) version 5.4.0
2022-10-28 16:15:26 -07:00
Kat Marchán
283a9af2c5
(cargo-release) version 5.4.0
2022-10-28 16:15:26 -07:00
Kat Marchán
f1ed8be567
update changelog
2022-10-28 16:15:00 -07:00
Rain
ec7df952eb
tests: add tests to ensure that boxed reports forward all methods
...
In previous commits we found that boxed reports weren't forwarding every
method. Add a test to ensure that they do.
2022-10-24 19:04:51 -07:00
Rain
1a27033d7a
feat(error): impl AsRef<dyn StdError> for Report
...
This seems like an easy implementation to fill out, and will be used for
tests in the following commit.
2022-10-24 19:04:51 -07:00
Rain
3fc5c04cbb
fix(wrapper): complete forwarding Diagnostic implementations
...
They were missing `diagnostic_source()` which was recently added.
2022-10-24 19:04:51 -07:00
Rain
0660d2f43c
feat(report): `Report::new_boxed`
...
This is already currently accessible with `miette!`, but I missed that
because it isn't clearly documented. Add a constructor to mirror
`Report::new` and `Report::msg`.
2022-10-24 19:04:51 -07:00
Xuanwo
5815eab310
docs: Fix typo of Diagnostic link in README ( #210 )
2022-10-13 09:20:29 -07:00
Benjamin Lee
ac02a1242b
feat(version): declare minimum supported rust version at 1.56.0 ( #209 )
...
Co-authored-by: Benjamin Lee <benjamin@computer.surgery>
2022-10-10 09:38:05 -07:00
Kat Marchán
1e6bd51f57
(cargo-release) start next development iteration 5.3.2-alpha.0
2022-09-10 14:26:59 -07:00
Kat Marchán
a8d03f536e
(cargo-release) start next development iteration 5.3.2-alpha.0
2022-09-10 14:26:59 -07:00
Kat Marchán
9d665d9cfc
(cargo-release) version 5.3.1
2022-09-10 14:26:13 -07:00
Kat Marchán
1c7981f5e9
(cargo-release) version 5.3.1
2022-09-10 14:26:12 -07:00
Kat Marchán
e4e67b29b5
docs: update changelog
2022-09-10 14:25:51 -07:00
Benjamin Lee
196c09ce7a
fix(graphical): Align highlights correctly with wide unicode characters and tabs ( #202 )
...
Fixes: https://github.com/zkat/miette/issues/97
Fixes: https://github.com/zkat/miette/issues/87
Tabs are always expanded to spaces by the graphical handler, and `tab_width` now defaults to 4. Instead of replacing every tab with a fixed number of spaces, spaces are used to align to the next tabstop. `tab_width` controls the space between tabstops rather than the fixed width of each tab character.
Co-authored-by: Benjamin Lee <benjamin@computer.surgery>
2022-09-10 14:20:37 -07:00
Nathan Whitaker
5f3429b062
fix(miri): Resolve Miri's concerns around unsafe code ( #197 )
2022-08-25 08:30:18 -07:00
Pig Fang
12279f83a8
docs: remove sentence about `cargo-edit` ( #198 )
2022-08-21 08:33:51 -07:00
Kat Marchán
ba4ba47e4d
(cargo-release) start next development iteration 5.3.1-alpha.0
2022-08-09 17:41:58 -07:00
Kat Marchán
6712cd6339
(cargo-release) start next development iteration 5.3.1-alpha.0
2022-08-09 17:41:58 -07:00
Kat Marchán
4647e83835
(cargo-release) version 5.3.0
2022-08-09 17:41:14 -07:00
Kat Marchán
faf090939c
(cargo-release) version 5.3.0
2022-08-09 17:41:14 -07:00
Kat Marchán
10489a8e6b
docs: update changelog
2022-08-09 17:40:40 -07:00
Luca Palmieri
b9ea587159
feat(graphical): Allow miette users to opt-out of the rendering of the cause chain ( #192 )
...
Fixes: https://github.com/zkat/miette/issues/191
2022-08-09 17:32:02 -07:00
Andrew Hickman
c3e6c98336
fix(utils): Fix off-by-one error in SourceOffset::from_location ( #190 )
2022-08-02 14:38:22 -07:00
Kat Marchán
c638fd1015
(cargo-release) start next development iteration 5.2.1-alpha.0
2022-08-01 09:49:53 -07:00
Kat Marchán
0c164dd695
(cargo-release) start next development iteration 5.2.1-alpha.0
2022-08-01 09:49:53 -07:00
Kat Marchán
ccc4d56d62
(cargo-release) version 5.2.0
2022-08-01 09:48:56 -07:00
Kat Marchán
2765a52d7f
(cargo-release) version 5.2.0
2022-08-01 09:48:55 -07:00
Kat Marchán
f7e2e35352
docs: update changelog
2022-08-01 09:48:36 -07:00
Leon Breedt
c95f58c87a
feat(json): `causes` support ( #188 )
...
Fixes: https://github.com/zkat/miette/issues/187
2022-07-31 11:47:06 -07:00
Kat Marchán
e286c705fd
fix(docs): readme was getting cut off during generation
...
Fixes: https://github.com/zkat/miette/issues/174
2022-07-24 10:24:07 -07:00
Kat Marchán
e537ffa473
(cargo-release) start next development iteration 5.1.2-alpha.0
2022-07-08 19:44:43 -07:00
Kat Marchán
0c76591193
(cargo-release) start next development iteration 5.1.2-alpha.0
2022-07-08 19:44:43 -07:00
Kat Marchán
df4a464dc0
(cargo-release) version 5.1.1
2022-07-08 19:43:52 -07:00
Kat Marchán
9f04a79606
(cargo-release) version 5.1.1
2022-07-08 19:43:52 -07:00
Kat Marchán
bacbe64d8a
docs: update changelog
2022-07-08 19:43:34 -07:00
Rain
12dc40070a
fix(graphical): handle an empty source ( #183 )
...
In some cases the source can be completely empty -- handle that in a reasonable fashion.
2022-07-08 19:41:12 -07:00