chore: add auto_impl

This commit is contained in:
Kevaundray Wedderburn
2025-05-20 00:58:42 +01:00
parent 06d62b9a06
commit 183a4bdec4
3 changed files with 3 additions and 0 deletions

1
Cargo.lock generated
View File

@@ -9531,6 +9531,7 @@ name = "zkvm-interface"
version = "0.1.0"
dependencies = [
"anyhow",
"auto_impl",
"bincode",
"indexmap 2.9.0",
"serde",

View File

@@ -11,6 +11,7 @@ serde = { version = "1.0", features = ["derive"] }
bincode = "1.3"
indexmap = { version = "2.9.0", features = ["serde"] }
thiserror = "2"
auto_impl = "1.0"
[lints]
workspace = true

View File

@@ -24,6 +24,7 @@ pub enum ProverResourceType {
}
#[allow(non_camel_case_types)]
#[auto_impl::auto_impl(&, Arc, Box)]
/// zkVM trait to abstract away the differences between each zkVM
pub trait zkVM {
type Error: std::error::Error + Send + Sync + 'static;