pub struct RtcBuild {Show 15 fields
pub target: PathBuf,
pub target_parent: PathBuf,
pub release: bool,
pub public_url: String,
pub filehash: bool,
pub final_dist: PathBuf,
pub staging_dist: PathBuf,
pub cargo_features: Features,
pub tools: ConfigOptsTools,
pub hooks: Vec<ConfigOptsHook>,
pub inject_autoloader: bool,
pub inject_scripts: bool,
pub pattern_script: Option<String>,
pub pattern_preload: Option<String>,
pub pattern_params: Option<HashMap<String, String>>,
}Expand description
Runtime config for the build system.
Fields§
§target: PathBufThe index HTML file to drive the bundling process.
target_parent: PathBufThe parent directory of the target index HTML file.
release: boolBuild in release mode.
public_url: StringThe public URL from which assets are to be served.
filehash: boolIf true, then files being processed should be hashed and the hash should be
appeneded to the file’s name.
final_dist: PathBufThe directory where final build artifacts are placed after a successful build.
staging_dist: PathBufThe directory used to stage build artifacts during an active build.
cargo_features: FeaturesThe configuration of the features passed to cargo.
tools: ConfigOptsToolsConfiguration for automatic application download.
hooks: Vec<ConfigOptsHook>Build process hooks.
inject_autoloader: boolA bool indicating if the output HTML should have the WebSocket autoloader injected.
This value is configured via the server config only. If the server is not being used, then the autoloader will not be injected.
inject_scripts: boolA bool indicationg if the output HTML should have module preloads and scripts injected.
pattern_script: Option<String>Optional pattern for the app loader script.
pattern_preload: Option<String>Optional pattern for the app preload element.
pattern_params: Option<HashMap<String, String>>Optional replacement parameters corresponding to the patterns provided in
pattern_script and pattern_preload.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RtcBuild
impl RefUnwindSafe for RtcBuild
impl Send for RtcBuild
impl Sync for RtcBuild
impl Unpin for RtcBuild
impl UnwindSafe for RtcBuild
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more