pub fn default_executor() -> Rc<dyn Executor>
Available on crate feature
client
and non-target_os="zkvm"
only.Expand description
Return a default Executor based on environment variables and feature flags.
The RISC0_EXECUTOR
environment variable, if specified, will select the
following Executor implementation:
local
: LocalProver to execute locally in-process. Note: this is only available when theprove
feature is enabled.ipc
: ExternalProver to execute using anr0vm
sub-process. Note:r0vm
must be installed. To specify the path tor0vm
, useRISC0_SERVER_PATH
.
If RISC0_EXECUTOR
is not specified, the following rules are used to select
an Executor:
- LocalProver if the
prove
feature flag is enabled. - ExternalProver otherwise.