Commit Graph

  • d63b2bb638 fix(zero length, no context): Add Option to distinguish between "current line" and "just the span" Nahor 2024-03-11 12:15:31 -0700
  • f7fa50d8de fix(SourceCode): Fix and improve default `SourceCode` implementation Nahor 2024-03-03 12:02:41 -0800
  • a37328a299 refactor(span): Simplify checks how a span applies on a line Nahor 2024-03-04 13:49:15 -0800
  • 6f8fbf836d refactor(get_lines): Simplify `get_lines` Nahor 2024-03-04 13:03:02 -0800
  • ca646f3119
    chore: Release v7.2.0 miette-derive-v7.2.0 Kat Marchán 2024-03-07 12:21:32 -0800
  • ff7baae70c
    docs: update changelog Kat Marchán 2024-03-07 12:21:18 -0800
  • 24a7bf4f4e
    ci(doc consistency): check that lib.rs and README.md are consistent (#353) Nahor 2024-03-07 12:20:08 -0800
  • 1487df45c9 ci(doc consistency): check that lib.rs and README.md are consistent Nahor 2024-03-04 14:15:43 -0800
  • 22b29eec38
    docs: use `cargo readme` to update (#351) Yiyu Lin 2024-02-28 13:58:02 +0800
  • 4840f0e0e9 powershell make it bin, wsl work well hzlinyiyu 2024-02-28 10:29:09 +0800
  • dd93e20ee5 work? hzlinyiyu 2024-02-28 09:44:40 +0800
  • 62cfd221ba
    docs: add `severity` example (#350) Yiyu Lin 2024-02-23 23:43:22 +0800
  • 328bf37922
    feat(wasm): add feature "fancy-no-syscall" for wasm targets (#349) Boshen 2024-02-23 23:42:39 +0800
  • 6941ea2d02
    improve feature Boshen 2024-02-23 11:29:31 +0800
  • 4c0626a3df more typo hzlinyiyu 2024-02-23 10:26:49 +0800
  • 35a904e481 fix hzlinyiyu 2024-02-23 10:06:55 +0800
  • c3a0781e3e doc: add `severity` example hzlinyiyu 2024-02-22 17:20:52 +0800
  • 97896318f0
    enable miri expect terminal_width Boshen 2024-02-22 16:03:07 +0800
  • 3500413261
    revert miri change Boshen 2024-02-22 15:58:29 +0800
  • 3892f471b1
    ci: remove features for miri Boshen 2024-02-22 15:53:40 +0800
  • 675f4f9f39
    add `fancy-base` for the `actualy` fancy feature Boshen 2024-02-22 15:50:52 +0800
  • 08bb4affca
    refactor: make `fancy-no-syscall` the base feature Boshen 2024-02-22 14:21:02 +0800
  • 8f2db83fb2
    feat: add feature "fancy-no-syscall" for wasm targets Boshen 2024-02-22 12:44:37 +0800
  • 1352dbcbe2
    ci: add wasm build check Boshen 2024-02-22 11:25:22 +0800
  • 6ea86a2248
    fix(redundant-import): fix a warning and CI failure in nightly (#348) Nahor 2024-02-21 14:05:17 -0800
  • 7d9dfc6e8e
    fix(invalid span): skip the snippet when read_span fails (#347) Nahor 2024-02-21 13:46:58 -0800
  • 54d895e10f fix(redundant-import): fix a warning and CI failure in nightly Nahor 2024-02-21 12:56:30 -0800
  • 1142e2b8f6 fix(invalid span): skip the snippet when read_span fails Nahor 2024-02-21 12:45:10 -0800
  • bb7c9a5b9f Simplify OptionalWrapper Nahor 2024-02-17 10:57:53 -0800
  • 75fea0935e
    fix(label-collections): Label collection fixes and cleanup (#343) Nahor 2024-02-17 13:46:24 -0800
  • 589eacc2c3 feat(collection): remove unnecessary `OptionalWrapper` Nahor 2024-02-17 10:55:56 -0800
  • 85576d7914 feat(collection): chain iterators rather than extend vector Nahor 2024-02-17 10:29:54 -0800
  • d144f7a28e feat(collection): remove repeated formatting of label text Nahor 2024-02-17 10:14:54 -0800
  • 7f2496ecff feat(collection): add label(collection) documentation to lib.rs Nahor 2024-02-16 15:53:34 -0800
  • a18a6444d9
    chore: Release v7.1.0 miette-derive-v7.1.0 Kat Marchán 2024-02-15 18:18:45 -0800
  • dc77b0cb5b
    docs: update changelog Kat Marchán 2024-02-15 18:18:32 -0800
  • 03060245d8
    feat(collection): add support for collection of labels (#341) Nahor 2024-02-15 18:14:04 -0800
  • 7a54a9f1c8 feat(collection): allow LabeledSpan in label collections Nahor 2024-02-15 16:33:24 -0800
  • 6d01ca1c2d feat(collection): add support for collection of labels (#315) Nahor 2024-02-15 14:11:30 -0800
  • 6f09250cca
    feat(source): derive common traits for NamedSource, SourceSpan, and SourceOffset (#340) Brooks Rady 2024-02-08 22:16:49 +0000
  • c39cb95ee9 feat(source): allow SourceOffset and SourceSpan to be sorted Brooks J Rady 2024-02-08 11:31:24 -0800
  • ad42459baf feat(source): derive common traits for NamedSource Brooks J Rady 2024-02-08 11:22:26 -0800
  • c2f06f6cca
    feat(derive): enable more boxed types to be #[diagnostic_source] (#338) Brooks Rady 2024-02-07 18:20:18 +0000
  • 6e829f8c0c
    fix(tests): revert test-breaking changes of e5c7ae4 (#339) Brooks Rady 2024-02-07 18:17:42 +0000
  • be0fe5f1d7 fix(ci): move from minimal-versions to direct-minimal-versions Brooks J Rady 2024-02-06 22:07:07 -0800
  • 612af78929 fix(tests): revert test-breaking changes of e5c7ae4 Brooks J Rady 2024-02-06 21:04:57 -0800
  • 8f4156dc92 feat(derive): enable more boxed types to be #[diagnostic_source] Brooks J Rady 2024-02-06 20:33:05 -0800
  • ecb01022f0
    chore: Release v7.0.0 miette-derive-v7.0.0 Kat Marchán 2024-02-04 17:59:20 -0800
  • ea12e3f781
    docs: update changelog Kat Marchán 2024-02-04 17:59:06 -0800
  • a4011d174c
    feat(deps): bump dependencies Kat Marchán 2024-02-04 17:25:35 -0800
  • c7144ee513
    feat(fancy): Add option to change the link display text (#335) David Calavera 2024-02-04 16:54:18 -0800
  • 8a7c0ddf99
    Merge branch 'main' into feature/syntect Kat Marchán 2024-02-03 19:15:52 -0800
  • 1b35ca90c8 feat(fancy): Add option to change the link display texts David Calavera 2024-02-02 03:40:16 -0800
  • cf2d8c0b2c
    chore: Release v6.0.1 miette-derive-v6.0.1 Kat Marchán 2024-02-03 20:27:47 -0800
  • e515a3c0ec
    docs: update changelog Kat Marchán 2024-02-03 20:27:39 -0800
  • ab7c066e76
    fix(highlighter): ugh, missed another spot Kat Marchán 2024-02-03 20:25:23 -0800
  • 3747fccf8d
    test: fix some fancy tests after NamedSource change Kat Marchán 2024-02-03 20:22:36 -0800
  • 1fa7f5241f
    fix(fmt): remove nightly-only fmt flags Kat Marchán 2024-02-03 20:14:01 -0800
  • 8b46679c36
    fix(graphical): oops. Fix theme issue Kat Marchán 2024-02-03 20:12:46 -0800
  • 9596405554
    ci: fix is-terminal nonsense Kat Marchán 2024-02-03 20:10:38 -0800
  • 5d4b262f7b
    chore: Release v6.0.0 miette-derive-v6.0.0 Kat Marchán 2024-02-03 20:01:50 -0800
  • 52b3240386
    docs: update changelog Kat Marchán 2024-02-03 20:01:25 -0800
  • ab59a7bc9b
    feat(MSRV): Actually bump the MSRV to 1.70.0 Kat Marchán 2024-02-03 19:44:46 -0800
  • 29d000f201
    feat(deps): bump some semver-breaking deps to newer versions Kat Marchán 2024-02-03 19:35:52 -0800
  • 4c48584f30
    feat(deps): remove once_cell dep in favor of `std::sync::OnceLock` Kat Marchán 2024-02-03 19:29:28 -0800
  • e5c7ae469e
    feat(deps): remove is-terminal dep in favor of `std::io::IsTerminal` Kat Marchán 2024-02-03 19:24:07 -0800
  • e65d0a78cc
    feat(highlighting): add syntax highlighting support with syntect crate (#313) Adam Curtis 2024-02-03 22:47:46 -0500
  • 1df3b1a537
    feat(source): Allow inner source type of a NamedSource to be borrowed (#254) Adam Curtis 2024-02-03 22:40:17 -0500
  • fad0e76ad2
    feat(source): use `usize` for length (#265) Gavrilikhin Daniil 2024-02-04 06:38:00 +0300
  • 0d5c2ce753
    feat(source-code): Don't override provided source code (#300) Gavrilikhin Daniil 2024-02-04 06:33:59 +0300
  • c0a298e5a8
    feat(deps): Bump terminal-size to v0.3.0 (#308) John Nunley 2024-02-03 19:31:41 -0800
  • f1dc89c076
    fix(handler): remove the two extra `is_terminal` sys call from `MietteHandlerOpts::build` (#325) Boshen 2024-02-04 11:12:49 +0800
  • cb2ae2e18b
    fix(graphical): render cause chains for inner errors (#330) Brooks Rady 2024-01-31 00:03:01 +0000
  • a24646d191 fix(graphical): render cause chains for inner errors Brooks J Rady 2024-01-27 12:29:10 -0800
  • 55bfc42016
    tests: improve robustness of color_format tests (#329) Benjamin Lee 2024-01-11 14:13:00 -0800
  • 5c666cd316
    improve robustness of color_format tests Benjamin Lee 2024-01-11 13:33:29 -0800
  • 19c22143cb
    feat(graphical): render disjoint snippets separately for cleaner output (#324) Hytak 2024-01-11 19:42:32 +0100
  • e16326ac58 Add test for non adjacent contexts Lucas Holten 2024-01-11 13:12:44 +0100
  • 5fda9b0e5b Update test so that it finds the bug. The previous test would still have overlap between the first and last context because of contexts are extended with `context_lines`. Lucas Holten 2024-01-11 13:08:55 +0100
  • b1e2bd2563 use std::cmp::max instead of manual calculation Lucas Holten 2024-01-11 11:34:25 +0100
  • 36f7f65f87 Add test for triple label context Lucas Holten 2024-01-11 11:28:32 +0100
  • 0bf3daebc2 Revert to passing around SpanContents Lucas Holten 2024-01-11 10:11:42 +0100
  • b0744462ad
    feat(graphical): Add `wrap_lines: bool` option allowing wrapping be disabled entirely (#328) Zanie Blue 2024-01-04 12:44:52 -0600
  • 1168d645ca Add `wrap_lines: bool` option allowing wrapping be disabled entirely Zanie 2024-01-04 10:27:45 -0600
  • 16f37e4778
    fix(handler): do not call `supports_color::on` when color is forced Boshen 2023-12-23 23:43:41 +0800
  • 0c87eb4a82
    fix(handler): remove the two extra `is_terminal` sys call from `MietteHandlerOpts::build` Boshen 2023-12-23 23:31:23 +0800
  • 997a3ea782 Choose primary label from inside the context Lucas Holten 2023-12-13 12:55:05 +0100
  • d4f30ec501 Clean up render_snippets Lucas Holten 2023-12-13 12:31:57 +0100
  • 1d4967daf8 fix minimal version check by excluding syntect-highlighter Adam Curtis 2023-11-19 14:52:36 -0500
  • 8b2407e509 Revert "remove redundant NamedSource::name (shadows new SourceCode::name)" Adam Curtis 2023-11-11 17:22:32 -0500
  • 9c019a87af use SpanContents instead of SourceCode for language detection Adam Curtis 2023-11-11 17:21:32 -0500
  • c679d87bef add crate-level docs for syntax highlighting Adam Curtis 2023-11-11 13:14:05 -0500
  • 6a856f428e add tests for syntax highlighting Adam Curtis 2023-11-09 15:10:10 -0500
  • cd23b475d1 add support for explicitly setting syntax highlighter language Adam Curtis 2023-11-09 14:20:00 -0500
  • c2b0125555 ignore ANSI color codes in line_visual_char_width Adam Curtis 2023-11-05 13:13:17 -0500
  • 50bb2940b8 exclude syntect-highlighter feature from MSRV build Adam Curtis 2023-11-04 16:07:28 -0400
  • 2906e58b59 remove redundant NamedSource::name (shadows new SourceCode::name) Adam Curtis 2023-11-04 13:28:35 -0400
  • 6bf9ff4775 add syntax highlighting support with syntect crate Adam Curtis 2023-11-03 17:12:55 -0400
  • 7ff4f874d6
    fix(graphical): rendering bug on small spans in large spans (#316) Jonathan Dönszelmann 2023-11-15 20:40:16 +0100
  • 2c704bb168
    Merge branch 'main' of github.com:zkat/miette into rendering-bug jdonszelmann 2023-11-15 19:56:48 +0100