use std::{rc::Rc, time::Duration};
use crate::{RuntimeProviders, default_runtime_providers};
#[derive(Clone)]
pub struct RunOptions {
pub timeout: Duration,
pub checkpoint_interval: u32,
pub max_call_depth: u32,
pub max_array_len: usize,
pub providers: Rc<dyn RuntimeProviders>,
}
impl Default for RunOptions {
fn default() -> Self {
Self {
timeout: Duration::from_millis(100),
checkpoint_interval: 100,
max_call_depth: 128,
max_array_len: 0x100_0000,
providers: default_runtime_providers(),
}
}
}