Struct perseus_cli::parse::Opts
source · pub struct Opts {Show 20 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,
pub verbose: bool,
}Expand description
The command-line interface for Perseus, a super-fast WebAssembly frontend development framework!
Fields§
§subcmd: Subcommand§cargo_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 (this
will not impact internal target-gating)
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)
verbose: boolShows the logs from building and serving your app no matter what (the
default is to only show them on a compilation/build failure); this
is intended mainly for end-to-end debugging, although the snoop
commands are more useful for targeted debugging
Trait Implementations§
source§impl Args for Opts
impl Args for Opts
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentssource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
source§impl FromArgMatches for Opts
impl FromArgMatches for Opts
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn 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>
source§fn 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.source§fn 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.source§impl Parser for Opts
impl Parser for Opts
§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
std::env::args_os(), return Err on error.