difftreelog
feat(evaluator) anyhow integration
in: master
3 files changed
Cargo.lockdiffbeforeafterboth10 "yansi-term",10 "yansi-term",11]11]1213[[package]]14name = "anyhow"15version = "1.0.38"16source = "registry+https://github.com/rust-lang/crates.io-index"17checksum = "afddf7f520a80dbf76e6f50a35bca42a2331ef227a28b3b6dc5c2e2338d114b1"121813[[package]]19[[package]]14name = "atty"20name = "atty"163version = "0.3.4"169version = "0.3.4"164dependencies = [170dependencies = [165 "annotate-snippets",171 "annotate-snippets",172 "anyhow",166 "base64",173 "base64",167 "bincode",174 "bincode",168 "closure",175 "closure",crates/jrsonnet-evaluator/Cargo.tomldiffbeforeafterboth17faster = []17faster = []18# Rustc-like trace visualization18# Rustc-like trace visualization19explaining-traces = ["annotate-snippets"]19explaining-traces = ["annotate-snippets"]20# Allows library authors to throw custom errors21anyhow-error = ["anyhow"]202221# Unlocks extra features, but works only on unstable23# Unlocks extra features, but works only on unstable22unstable = []24unstable = []373938thiserror = "1.0"40thiserror = "1.0"394140# Serialized stdlib42[dependencies.anyhow]43version = "1.0"44optional = true4546# Serialized stdlib41[dependencies.serde]47[dependencies.serde]42version = "1.0"48version = "1.0"43optional = true49optional = truecrates/jrsonnet-evaluator/src/error.rsdiffbeforeafterboth124 #[error("sort error: {0}")]124 #[error("sort error: {0}")]125 Sort(#[from] SortError),125 Sort(#[from] SortError),126 127 #[cfg(feature = "anyhow-error")]128 #[error(transparent)]129 Other(Rc<anyhow::Error>)126}130}131132#[cfg(feature = "anyhow-error")]133impl From<anyhow::Error> for LocError {134 fn from(e: anyhow::Error) -> Self {135 Self::new(Error::Other(Rc::new(e)))136 }137}138127impl From<Error> for LocError {139impl From<Error> for LocError {128 fn from(e: Error) -> Self {140 fn from(e: Error) -> Self {