pub struct EmitWasiCommand {
pub input: Option<String>,
pub emit_path: Option<String>,
pub entry: Option<String>,
pub init_fn: Option<String>,
pub reload_fn: Option<String>,
pub boundary: String,
pub world: String,
pub emit_core: bool,
pub check_only: bool,
}Expand description
emit a WebAssembly command module for a WASI host
Fields§
§input: Option<String>input source file, defaults to “calcit.cirru”
emit_path: Option<String>output directory for program.wasm; defaults to the top-level emit path
entry: Option<String>select a configured entry
init_fn: Option<String>override the configured initialization definition; it must take no arguments
reload_fn: Option<String>override the configured reload definition
boundary: Stringoutput ABI boundary: component (WASI 0.3 default) or native (Preview 1)
world: Stringtarget WASI world: command (WASI 0.3 default) or http (WASI 0.2 proxy)
emit_core: boolemit a raw Canonical ABI core module without built-in Component packaging (for external WIT embedding and component composition)
check_only: boolvalidate the WASI component without writing program.wasm
Trait Implementations§
Source§impl Clone for EmitWasiCommand
impl Clone for EmitWasiCommand
Source§impl Debug for EmitWasiCommand
impl Debug for EmitWasiCommand
Source§impl FromArgs for EmitWasiCommand
impl FromArgs for EmitWasiCommand
Source§fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
Source§fn redact_arg_values(
__cmd_name: &[&str],
__args: &[&str],
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( __cmd_name: &[&str], __args: &[&str], ) -> Result<Vec<String>, EarlyExit>
Get a String with just the argument names, e.g., options, flags, subcommands, etc, but
without the values of the options and arguments. This can be useful as a means to capture
anonymous usage statistics without revealing the content entered by the end user. Read more
Source§impl PartialEq for EmitWasiCommand
impl PartialEq for EmitWasiCommand
impl StructuralPartialEq for EmitWasiCommand
Source§impl SubCommand for EmitWasiCommand
impl SubCommand for EmitWasiCommand
Source§const COMMAND: &'static CommandInfo
const COMMAND: &'static CommandInfo
Information about the subcommand.
Auto Trait Implementations§
impl Forget for EmitWasiCommand
impl Freeze for EmitWasiCommand
impl Move for EmitWasiCommand
impl RefUnwindSafe for EmitWasiCommand
impl Send for EmitWasiCommandwhere
RawVecInner: Send,
impl Sync for EmitWasiCommandwhere
RawVecInner: Sync,
impl Unpin for EmitWasiCommand
impl UnsafeUnpin for EmitWasiCommand
impl UnwindSafe for EmitWasiCommandwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SubCommands for Twhere
T: SubCommand,
impl<T> SubCommands for Twhere
T: SubCommand,
Source§const COMMANDS: &'static [&'static CommandInfo<'static>]
const COMMANDS: &'static [&'static CommandInfo<'static>]
Info for the commands.
Source§fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
Get a list of commands that are discovered at runtime.