-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(protocol) overhauled entire protocol to be based on byte offsets (…
…#1) Includes other improvements! BREAKING CHANGE: Yeah this is pretty much a rewrite.
- Loading branch information
Showing
9 changed files
with
338 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ edition = "2018" | |
|
||
[dependencies] | ||
indenter = "0.3.3" | ||
thiserror = "1.0.26" | ||
|
||
[dev-dependencies] | ||
thiserror = "1.0.26" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
pub use std::io; | ||
|
||
pub use thiserror::Error; | ||
|
||
/** | ||
Error enum for miette. Used by certain operations in the protocol. | ||
*/ | ||
#[derive(Debug, Error)] | ||
pub enum MietteError { | ||
#[error(transparent)] | ||
IoError(#[from] io::Error), | ||
#[error("The given offset is outside the bounds of its Source")] | ||
OutOfBounds | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#![doc = include_str!("../README.md")] | ||
|
||
pub use chain::*; | ||
pub use error::*; | ||
pub use protocol::*; | ||
pub use reporter::*; | ||
|
||
mod chain; | ||
mod error; | ||
mod source_impls; | ||
mod protocol; | ||
mod reporter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.