pub struct Witgen {
    pub input: Option<PathBuf>,
    pub input_dir: PathBuf,
    pub output: PathBuf,
    pub prefix_file: Vec<PathBuf>,
    pub prefix_string: Vec<String>,
    pub stdout: bool,
    pub skip_resolve: bool,
    pub skip_prologue: bool,
    pub cargo: ClapCargo,
}

Fields

input: Option<PathBuf>

Specify input file to generate wit definitions from

input_dir: PathBuf

Specify input directory to generate wit definitions from

Will expect library: <input-dir>/src/lib.rs

output: PathBuf

Specify output file to generate wit definitions

prefix_file: Vec<PathBuf>

Specify prefix file to copy into top of the generated wit file

prefix_string: Vec<String>

Specify prefix string to copy into top of the generated wit file --prefix-string 'use * from "string.wit"'

stdout: bool

Print results to stdout instead file

skip_resolve: bool

Do not resolve the use references in generated wit file to combine into one

skip_prologue: bool

Skip adding prologue to file

cargo: ClapCargo

Implementations

Trait Implementations

Append to Command so it can instantiate Self. Read more

Append to Command so it can update self. Read more

Formats the value using the given formatter. Read more

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more

Assign values from ArgMatches to self.

Assign values from ArgMatches to self.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.