lilith: Support versioning of spawned networks.

This commit is contained in:
parazyd
2023-07-03 17:34:27 +02:00
parent fba6eb966f
commit 3546af6c79
5 changed files with 32 additions and 5 deletions

View File

@@ -60,6 +60,10 @@ pub enum Error {
#[error(transparent)]
DashuParseError(#[from] dashu::base::error::ParseError),
#[cfg(feature = "semver")]
#[error("semver parse error: {0}")]
SemverError(String),
// ===============
// Encoding errors
// ===============
@@ -622,6 +626,13 @@ impl From<halo2_proofs::plonk::Error> for Error {
}
}
#[cfg(feature = "semver")]
impl From<semver::Error> for Error {
fn from(err: semver::Error) -> Self {
Self::SemverError(err.to_string())
}
}
/*
#[cfg(feature = "tungstenite")]
impl From<tungstenite::Error> for Error {