pub struct SbomInputs<'a> {
pub synth_version: &'a str,
pub input_path: &'a Path,
pub input_bytes: &'a [u8],
pub output_path: &'a Path,
pub output_bytes: &'a [u8],
pub target_triple: &'a str,
pub backend: &'a str,
pub imports: &'a [ImportEntry],
}Expand description
Inputs needed to construct a build SBOM. Grouped into a struct so the constructor signature stays readable as the SBOM scope grows.
Fields§
§synth_version: &'a strCARGO_PKG_VERSION (or release tag) of the synth that compiled.
input_path: &'a PathPath of the input WASM/WAT file (used for the component name).
input_bytes: &'a [u8]Raw bytes of the input WASM module (post WAT→WASM, pre-compile).
output_path: &'a PathPath of the emitted ELF binary.
output_bytes: &'a [u8]Raw bytes of the emitted ELF binary.
target_triple: &'a strLLVM-style target triple of the output (e.g. thumbv7em-none-eabi).
backend: &'a strName of the backend that produced the ELF (e.g. arm, riscv).
imports: &'a [ImportEntry]Imports decoded from the WASM module — one component each.
Trait Implementations§
Source§impl<'a> Clone for SbomInputs<'a>
impl<'a> Clone for SbomInputs<'a>
Source§fn clone(&self) -> SbomInputs<'a>
fn clone(&self) -> SbomInputs<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for SbomInputs<'a>
impl<'a> RefUnwindSafe for SbomInputs<'a>
impl<'a> Send for SbomInputs<'a>
impl<'a> Sync for SbomInputs<'a>
impl<'a> Unpin for SbomInputs<'a>
impl<'a> UnsafeUnpin for SbomInputs<'a>
impl<'a> UnwindSafe for SbomInputs<'a>
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