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 error_on_warnings: bool,
pub tests: bool,
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: BuildTarget
Build 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: bool
Use 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: bool
Output the time elapsed over each part of the compilation process.
error_on_warnings: bool
Warnings must be treated as compiler errors.
tests: bool
Include all test functions within the build.
member_filter: MemberFilter
The set of options to filter by member project kind.
Implementations§
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§
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
§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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.