cubipods 0.1.1

A minimal EVM implemented in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::{error::Error, ffi::OsString};

use clap::Parser;
use cubipods::{
    utils::cli::{AppBuilder, Args},
    vm::Vm,
};

pub fn setup<'a, I, T>(args: I) -> Result<Vm<'a>, Box<dyn Error>>
where
    I: IntoIterator<Item = T>,
    T: Into<OsString> + Clone,
{
    let args = Args::try_parse_from(args)?;
    let vm = Box::leak(Box::new(args)).build()?;

    Ok(vm)
}