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 theprovefeature is enabled.ipc: ExternalProver to execute using anr0vmsub-process. Note:r0vmmust 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
provefeature flag is enabled. - ExternalProver otherwise.