pub struct Opts {
Show 19 fields pub subcmd: Subcommand, pub cargo_engine_path: String, pub cargo_browser_path: String, pub wasm_bindgen_path: Option<String>, pub wasm_opt_path: Option<String>, pub rustup_path: String, pub wasm_release_rustflags: String, pub cargo_engine_args: String, pub cargo_browser_args: String, pub wasm_bindgen_args: String, pub wasm_opt_args: String, pub git_path: String, pub reload_server_host: String, pub reload_server_port: u16, pub sequential: bool, pub no_browser_reload: bool, pub wasm_bindgen_version: Option<String>, pub wasm_opt_version: Option<String>, pub no_system_tools_cache: bool,
}
Expand description

The command-line interface for Perseus, a super-fast WebAssembly frontend development framework!

Fields

subcmd: Subcommandcargo_engine_path: String

The path to cargo when used for engine builds

cargo_browser_path: String

The path to cargo when used for browser builds

wasm_bindgen_path: Option<String>

A path to wasm-bindgen, if you want to use a local installation (note that the CLI will install it locally for you by default)

wasm_opt_path: Option<String>

A path to wasm-opt, if you want to use a local installation (note that the CLI will install it locally for you by default)

rustup_path: String

The path to rustup

wasm_release_rustflags: String

The value of RUSTFLAGS when building for Wasm in release mode

cargo_engine_args: String

Any arguments to cargo when building for the engine-side

cargo_browser_args: String

Any arguments to cargo when building for the browser-side

wasm_bindgen_args: String

Any arguments to wasm-bindgen

wasm_opt_args: String

Any arguments to wasm-opt (only run in release builds)

git_path: String

The path to git (for downloading custom templates for perseus new)

reload_server_host: String

The host for the reload server (you should almost never change this)

reload_server_port: u16

The port for the reload server (you should almost never change this)

sequential: bool

If this is set, commands will be run sequentially rather than in parallel (slows down operations, but reduces memory usage)

no_browser_reload: bool

Disable automatic browser reloading

wasm_bindgen_version: Option<String>

A custom version of wasm-bindgen to use (defaults to the latest installed version, and after that the latest available from GitHub; update to latest can be forced with latest)

wasm_opt_version: Option<String>

A custom version of wasm-opt to use (defaults to the latest installed version, and after that the latest available from GitHub; update to latest can be forced with latest)

no_system_tools_cache: bool

Disables the system-wide tools cache in ~/.cargo/perseus_tools/ (you should set this for CI)

Trait Implementations

Append to Command so it can instantiate Self. Read more

Append to Command so it can update self. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

👎Deprecated since 3.1.0:

Replaced with `CommandFactory::command

Deprecated, replaced with CommandFactory::command

👎Deprecated since 3.1.0:

Replaced with `CommandFactory::command_for_update

Deprecated, replaced with CommandFactory::command_for_update

Build a Command that can instantiate Self. Read more

Build a Command that can update self. 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.

Parse from std::env::args_os(), exit on error

Parse from std::env::args_os(), return Err on error.

Parse from iterator, exit on error

Parse from iterator, return Err on error.

Update from iterator, exit on error

Update from iterator, return Err on error.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more