pub struct BuildOpts {
pub pkg: PkgOpts,
pub print: PrintOpts,
pub minify: MinifyOpts,
pub binary_outfile: Option<String>,
pub debug_outfile: Option<String>,
pub build_target: BuildTarget,
pub build_profile: Option<String>,
pub release: bool,
pub time_phases: bool,
pub tests: bool,
pub const_inject_map: HashMap<Pinned, Vec<(String, ConfigTimeConstant)>>,
pub member_filter: MemberFilter,
}Expand description
The set of options provided to the build functions.
Fields§
§pkg: PkgOpts§print: PrintOpts§minify: MinifyOpts§binary_outfile: Option<String>If set, outputs a binary file representing the script bytes.
debug_outfile: Option<String>If set, outputs source file mapping in JSON format
build_target: BuildTargetBuild target to use.
build_profile: Option<String>Name of the build profile to use. If it is not specified, forc will use debug build profile.
release: boolUse release build plan. If a custom release plan is not specified, it is implicitly added to the manifest file.
If –build-profile is also provided, forc omits this flag and uses provided build-profile.
time_phases: boolOutput the time elapsed over each part of the compilation process.
tests: boolInclude all test functions within the build.
const_inject_map: HashMap<Pinned, Vec<(String, ConfigTimeConstant)>>List of constants to inject for each package.
member_filter: MemberFilterThe set of options to filter by member project kind.
Implementations§
source§impl BuildOpts
impl BuildOpts
sourcepub fn include_tests(self, include_tests: bool) -> Self
pub fn include_tests(self, include_tests: bool) -> Self
Return a BuildOpts with modified tests field.
sourcepub fn const_injection_map(
self,
const_inject_map: HashMap<Pinned, Vec<(String, ConfigTimeConstant)>>
) -> Self
pub fn const_injection_map( self, const_inject_map: HashMap<Pinned, Vec<(String, ConfigTimeConstant)>> ) -> Self
Return a BuildOpts with modified injection_map field.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for BuildOpts
impl Send for BuildOpts
impl Sync for BuildOpts
impl Unpin for BuildOpts
impl UnwindSafe for BuildOpts
Blanket Implementations§
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.