Struct forc_pkg::BuiltPackage
source · pub struct BuiltPackage {
pub build_target: BuildTarget,
pub json_abi_program: ProgramABI,
pub storage_slots: Vec<StorageSlot>,
pub bytecode: Vec<u8>,
pub entries: Vec<FinalizedEntry>,
pub tree_type: TreeType,
pub pkg_name: String,
pub decl_engine: DeclEngine,
pub manifest_file: PackageManifestFile,
/* private fields */
}
Expand description
The result of successfully compiling a package.
Fields§
§build_target: BuildTarget
§json_abi_program: ProgramABI
§storage_slots: Vec<StorageSlot>
§bytecode: Vec<u8>
§entries: Vec<FinalizedEntry>
§tree_type: TreeType
§pkg_name: String
§decl_engine: DeclEngine
§manifest_file: PackageManifestFile
Implementations§
source§impl BuiltPackage
impl BuiltPackage
sourcepub fn write_bytecode(&self, path: &Path) -> Result<()>
pub fn write_bytecode(&self, path: &Path) -> Result<()>
Writes bytecode of the BuiltPackage to the given path
.
sourcepub fn write_debug_info(&self, path: &Path) -> Result<()>
pub fn write_debug_info(&self, path: &Path) -> Result<()>
Writes debug_info (source_map) of the BuiltPackage to the given path
.
sourcepub fn write_output(
&self,
minify: MinifyOpts,
pkg_name: &str,
output_dir: &Path
) -> Result<()>
pub fn write_output(
&self,
minify: MinifyOpts,
pkg_name: &str,
output_dir: &Path
) -> Result<()>
Writes BuiltPackage to output_dir
.
Trait Implementations§
source§impl Clone for BuiltPackage
impl Clone for BuiltPackage
source§fn clone(&self) -> BuiltPackage
fn clone(&self) -> BuiltPackage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more