pub struct BuildInfoBuilder { /* private fields */ }Expand description
Builder for creating build info incrementally
Implementations§
Source§impl BuildInfoBuilder
impl BuildInfoBuilder
Sourcepub const fn from_existing(build_info: BuildInfo, base_dir: PathBuf) -> Self
pub const fn from_existing(build_info: BuildInfo, base_dir: PathBuf) -> Self
Create a builder from existing build info
Sourcepub fn set_root_files(&mut self, files: Vec<String>) -> &mut Self
pub fn set_root_files(&mut self, files: Vec<String>) -> &mut Self
Set root files
Sourcepub fn add_file(&mut self, path: &Path, exports: &[String]) -> Result<&mut Self>
pub fn add_file(&mut self, path: &Path, exports: &[String]) -> Result<&mut Self>
Add a file to the build info
Sourcepub fn set_file_dependencies(
&mut self,
path: &Path,
deps: Vec<PathBuf>,
) -> &mut Self
pub fn set_file_dependencies( &mut self, path: &Path, deps: Vec<PathBuf>, ) -> &mut Self
Set dependencies for a file
Sourcepub fn set_file_emit(
&mut self,
path: &Path,
js_hash: Option<&str>,
dts_hash: Option<&str>,
) -> &mut Self
pub fn set_file_emit( &mut self, path: &Path, js_hash: Option<&str>, dts_hash: Option<&str>, ) -> &mut Self
Set emit signature for a file
Sourcepub fn set_options(&mut self, options: BuildInfoOptions) -> &mut Self
pub fn set_options(&mut self, options: BuildInfoOptions) -> &mut Self
Set compiler options
Auto Trait Implementations§
impl Freeze for BuildInfoBuilder
impl RefUnwindSafe for BuildInfoBuilder
impl Send for BuildInfoBuilder
impl Sync for BuildInfoBuilder
impl Unpin for BuildInfoBuilder
impl UnsafeUnpin for BuildInfoBuilder
impl UnwindSafe for BuildInfoBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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