Skip to content

Commit

Permalink
feat(reporter): fancy new reporter with unicode, colors, and multiline (
Browse files Browse the repository at this point in the history
#23)

Fixes: #3
Fixes: #5
  • Loading branch information
zkat authored Aug 21, 2021
1 parent 8fbad1b commit d675334
Show file tree
Hide file tree
Showing 13 changed files with 1,114 additions and 300 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ indenter = "0.3.3"
thiserror = "1.0.26"
miette-derive = { version = "=0.11.0", path = "miette-derive" }
once_cell = "1.8.0"
owo-colors = "2.0.0"
atty = "0.2.14"

[dev-dependencies]
thiserror = "1.0.26"
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,5 @@ Error: Error[oops::my::bad]: oops it broke!

It also includes some code taken from [`eyre`](https://github.com/yaahc/eyre),
and some from [`thiserror`](https://github.com/dtolnay/thiserror), also under
the Apache License.
the Apache License. Some code is taken from
[`ariadne`](https://github.com/zesterer/ariadne), which is MIT licensed.
2 changes: 1 addition & 1 deletion miette-derive/src/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use proc_macro2::{Delimiter, Group, TokenStream, TokenTree};
use quote::{format_ident, quote, quote_spanned, ToTokens};
use syn::ext::IdentExt;
use syn::parse::{ParseStream, Parser};
use syn::{Ident, Index, LitStr, Member, Result, Token, braced, bracketed, parenthesized};
use syn::{braced, bracketed, parenthesized, Ident, Index, LitStr, Member, Result, Token};

#[derive(Clone)]
pub struct Display {
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
pub use miette_derive::*;

pub use error::*;
pub use printer::*;
pub use protocol::*;
pub use reporter::*;
pub use utils::*;

mod chain;
mod error;
mod printer;
mod protocol;
mod reporter;
mod source_impls;
mod utils;
Loading

0 comments on commit d675334

Please sign in to comment.