Struct move_package::compilation::compiled_package::CompiledPackage
source · pub struct CompiledPackage {
pub compiled_package_info: CompiledPackageInfo,
pub sources: Vec<String>,
pub compiled_units: Vec<CompiledUnit>,
pub dependencies: Vec<CompiledPackage>,
pub compiled_docs: Option<Vec<(String, String)>>,
pub compiled_abis: Option<Vec<(String, Vec<u8>)>>,
}
Expand description
Represents a compiled package in memory.
Fields§
§compiled_package_info: CompiledPackageInfo
Meta information about the compilation of this CompiledPackage
sources: Vec<String>
The source files in this package that were used for generation.
compiled_units: Vec<CompiledUnit>
The output compiled bytecode (both module, and scripts)
dependencies: Vec<CompiledPackage>
Packages that this package depends on. Non-transitive dependencies.
compiled_docs: Option<Vec<(String, String)>>
filename -> doctext
compiled_abis: Option<Vec<(String, Vec<u8>)>>
filename -> json bytes for ScriptABI. Can then be used to generate transaction builders in various languages.
Implementations§
source§impl CompiledPackage
impl CompiledPackage
sourcepub fn transitive_compiled_modules(&self) -> Vec<CompiledUnit> ⓘ
pub fn transitive_compiled_modules(&self) -> Vec<CompiledUnit> ⓘ
Returns all compiled modules for this package in transitive dependencies
sourcepub fn transitive_dependencies(&self) -> Vec<&CompiledPackage> ⓘ
pub fn transitive_dependencies(&self) -> Vec<&CompiledPackage> ⓘ
Returns CompiledPackage
s in dependency order
Trait Implementations§
source§impl Clone for CompiledPackage
impl Clone for CompiledPackage
source§fn clone(&self) -> CompiledPackage
fn clone(&self) -> CompiledPackage
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