From ff2e1f808d73a365b8a9af781601d3011fa5d8b6 Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Mon, 12 May 2025 14:01:59 +0100 Subject: [PATCH] fill in compile trait --- crates/ere-risczero/src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/ere-risczero/src/lib.rs b/crates/ere-risczero/src/lib.rs index b8f1deb..52a59a8 100644 --- a/crates/ere-risczero/src/lib.rs +++ b/crates/ere-risczero/src/lib.rs @@ -1,20 +1,20 @@ -use thiserror::Error; +use compile::compile_risczero_program; use zkvm_interface::Compiler; mod compile; +mod error; +use error::RiscZeroError; + #[allow(non_camel_case_types)] pub struct RV32_IM_RISCZERO_ZKVM_ELF; -#[derive(Debug, Error)] -pub enum RiscZeroError {} - impl Compiler for RV32_IM_RISCZERO_ZKVM_ELF { type Error = RiscZeroError; type Program = Vec; - fn compile(_path_to_program: &std::path::Path) -> Result { - todo!() + fn compile(path_to_program: &std::path::Path) -> Result { + compile_risczero_program(path_to_program).map_err(RiscZeroError::from) } }