Struct tauri_utils::config::BuildConfig
source · [−]pub struct BuildConfig {
pub runner: Option<String>,
pub dev_path: AppUrl,
pub dist_dir: AppUrl,
pub before_dev_command: Option<String>,
pub before_build_command: Option<String>,
pub features: Option<Vec<String>>,
pub with_global_tauri: bool,
}
Expand description
The Build configuration object.
Fields
runner: Option<String>
The binary used to build and run the application.
dev_path: AppUrl
The path or URL to use on development.
dist_dir: AppUrl
The path to the app’s dist dir. This path must contain your index.html file.
before_dev_command: Option<String>
A shell command to run before tauri dev
kicks in.
The TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUG environment variables are set if you perform conditional compilation.
before_build_command: Option<String>
A shell command to run before tauri build
kicks in.
The TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUG environment variables are set if you perform conditional compilation.
features: Option<Vec<String>>
Features passed to cargo
commands.
with_global_tauri: bool
Whether we should inject the Tauri API on window.__TAURI__
or not.
Trait Implementations
sourceimpl Clone for BuildConfig
impl Clone for BuildConfig
sourcefn clone(&self) -> BuildConfig
fn clone(&self) -> BuildConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BuildConfig
impl Debug for BuildConfig
sourceimpl Default for BuildConfig
impl Default for BuildConfig
sourceimpl<'de> Deserialize<'de> for BuildConfig
impl<'de> Deserialize<'de> for BuildConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<BuildConfig> for BuildConfig
impl PartialEq<BuildConfig> for BuildConfig
sourcefn eq(&self, other: &BuildConfig) -> bool
fn eq(&self, other: &BuildConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BuildConfig) -> bool
fn ne(&self, other: &BuildConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for BuildConfig
impl Serialize for BuildConfig
impl StructuralPartialEq for BuildConfig
Auto Trait Implementations
impl RefUnwindSafe for BuildConfig
impl Send for BuildConfig
impl Sync for BuildConfig
impl Unpin for BuildConfig
impl UnwindSafe for BuildConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more