#![doc = include_str!("../README.md")]
#![cfg(not(target_arch = "wasm32"))]
#[cfg(feature = "jit")]
mod compile;
mod create;
mod traits;
use std::path::PathBuf;
pub use clap::Parser;
use clap::Subcommand;
pub use omnia_runtime_macro::runtime;
#[doc(hidden)]
pub use {anyhow, futures, tokio, wasmtime, wasmtime_wasi};
#[cfg(feature = "jit")]
pub use self::compile::*;
pub use self::create::*;
pub use self::traits::*;
#[derive(Parser, PartialEq, Eq)]
pub struct Cli {
#[command(subcommand)]
pub command: Command,
}
#[derive(Subcommand, PartialEq, Eq)]
pub enum Command {
Run {
wasm: PathBuf,
},
#[cfg(feature = "jit")]
Compile {
wasm: PathBuf,
#[arg(short, long)]
output: Option<PathBuf>,
},
}