Skip to content

Commit

Permalink
Merge pull request #12 from peterhuene/miette
Browse files Browse the repository at this point in the history
Refactor diagnostic errors to use `miette`.
  • Loading branch information
peterhuene authored Nov 25, 2023
2 parents 787bdd4 + 113a807 commit 56d0e15
Show file tree
Hide file tree
Showing 138 changed files with 2,873 additions and 2,742 deletions.
112 changes: 111 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ serde_json = { workspace = true }
wat = { workspace = true }
wasmparser = { workspace = true }
wasmprinter = { workspace = true }
thiserror = { workspace = true }
# TODO: use the next release which has support for primary labels
miette = { git = "https://github.com/zkat/miette", features = ["fancy"] }

[features]
default = []
Expand Down
6 changes: 5 additions & 1 deletion crates/wac-parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,21 @@ wit-component = { workspace = true }
wasm-encoder = { workspace = true }
wasm-metadata = { workspace = true }
wat = { workspace = true, optional = true }
owo-colors = { workspace = true }
# TODO: use the next release which has support for primary labels
miette = { git = "https://github.com/zkat/miette", features = ["serde"] }

[features]
default = ["wat"]

[dev-dependencies]
owo-colors = "3.5.0"
pretty_assertions = "1.4.0"
pretty_env_logger = { workspace = true }
rayon = "1.8.0"
serde_json = { workspace = true }
wasmprinter = { workspace = true }
# TODO: use the next release which has support for primary labels
miette = { git = "https://github.com/zkat/miette", features = ["serde", "fancy"] }

[[test]]
name = "parser"
Expand Down
Loading

0 comments on commit 56d0e15

Please sign in to comment.