Struct forc_pkg::BuildOpts

source ·
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 inject_map: HashMap<Pinned, Vec<(String, ConfigTimeConstant)>>,
}
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.

§tests: bool

Include all test functions within the build.

§inject_map: HashMap<Pinned, Vec<(String, ConfigTimeConstant)>>

List of constants to inject for each package.

Trait Implementations§

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more