Skip to content

Commit

Permalink
Exports needed for recursion (risc0#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaub authored Sep 8, 2023
1 parent ed5bf68 commit 22a00ef
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 41 deletions.
36 changes: 13 additions & 23 deletions bonsai/examples/governance/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions examples/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions risc0/zkvm/src/host/recursion/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ mod poly_ext;
mod receipt;
mod taps;

pub use control_id::ALLOWED_IDS_ROOT;
pub use poly_ext::DEF;
pub use receipt::{valid_control_ids, SuccinctReceipt};
pub use self::{
control_id::ALLOWED_IDS_ROOT,
poly_ext::DEF,
receipt::{valid_control_ids, SuccinctReceipt},
taps::TAPSET,
};

/// This struct implements traits that are defined by code generated by the
/// circuit definition.
Expand Down
9 changes: 8 additions & 1 deletion risc0/zkvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ mod host;
pub mod serde;
pub mod sha;

/// Re-exports for recursion
#[cfg(not(target_os = "zkvm"))]
#[cfg(feature = "prove")]
pub mod recursion {
pub use super::host::recursion::*;
}

pub use anyhow::Result;
#[cfg(not(target_os = "zkvm"))]
#[cfg(any(feature = "client", feature = "prove"))]
Expand Down Expand Up @@ -55,7 +62,7 @@ pub use self::host::{
client::prove::local::LocalProver,
server::{
exec::executor::Executor,
prove::{get_prover_impl, loader::Loader, DynProverImpl},
prove::{get_prover_impl, loader::Loader, DynProverImpl, HalPair},
session::{FileSegmentRef, Segment, SegmentRef, Session, SessionEvents, SimpleSegmentRef},
},
};
Expand Down

0 comments on commit 22a00ef

Please sign in to comment.