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
Deprecated, replaced with CommandFactory::command
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Replaced with `CommandFactory::command_for_update
Deprecated, replaced with CommandFactory::command_for_update
sourcefn 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>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
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>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
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>
Assign values from 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>
Assign values from ArgMatches to self.
sourceimpl Parser for Opts
impl Parser for Opts
sourcefn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
sourcefn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
sourcefn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
sourcefn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Auto Trait Implementations
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnwindSafe for Opts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more