Struct perseus_cli::parse::Opts
source · [−]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: StringThe path to cargo when used for engine builds
cargo_browser_path: StringThe 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: StringThe path to rustup
wasm_release_rustflags: StringThe value of RUSTFLAGS when building for Wasm in release mode
cargo_engine_args: StringAny arguments to cargo when building for the engine-side
cargo_browser_args: StringAny arguments to cargo when building for the browser-side
wasm_bindgen_args: StringAny arguments to wasm-bindgen
wasm_opt_args: StringAny arguments to wasm-opt (only run in release builds)
git_path: StringThe path to git (for downloading custom templates for perseus new)
reload_server_host: StringThe host for the reload server (you should almost never change this)
reload_server_port: u16The port for the reload server (you should almost never change this)
sequential: boolIf this is set, commands will be run sequentially rather than in parallel (slows down operations, but reduces memory usage)
no_browser_reload: boolDisable 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: boolDisables the system-wide tools cache in ~/.cargo/perseus_tools/ (you
should set this for CI)
Trait Implementations
sourceimpl CommandFactory for Opts
impl CommandFactory for Opts
sourcefn into_app<'b>() -> Command<'b>
fn into_app<'b>() -> Command<'b>
Replaced with `CommandFactory::command
CommandFactory::commandsourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Replaced with `CommandFactory::command_for_update
CommandFactory::command_for_updatesourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl FromArgMatches for Opts
impl FromArgMatches for Opts
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
sourcefn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
sourcefn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
ArgMatches to self.sourcefn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
ArgMatches to self.