Struct wasmer_cli::commands::create_exe::PrefixMapCompilation
source · pub(crate) struct PrefixMapCompilation {
input_hashes: BTreeMap<String, String>,
manual_prefixes: BTreeMap<String, String>,
compilation_objects: BTreeMap<String, Vec<u8>>,
}
Expand description
Prefix map used during compilation of object files
Fields§
§input_hashes: BTreeMap<String, String>
Sha256 hashes for the input files
manual_prefixes: BTreeMap<String, String>
Manual prefixes for input files (file:prefix)
compilation_objects: BTreeMap<String, Vec<u8>>
Cached compilation objects for files on disk
Implementations§
source§impl PrefixMapCompilation
impl PrefixMapCompilation
sourcefn from_input(
atoms: &[(String, Vec<u8>)],
prefixes: &[String],
only_validate_prefixes: bool,
) -> Result<Self, Error>
fn from_input( atoms: &[(String, Vec<u8>)], prefixes: &[String], only_validate_prefixes: bool, ) -> Result<Self, Error>
Sets up the prefix map from a collection like “sha123123” or “wasmfile:sha123123” or “wasmfile:/tmp/filepath/:sha123123”
fn split_prefix(s: &str) -> Vec<String>
pub(crate) fn hash_for_bytes(bytes: &[u8]) -> String
fn get_prefix_for_atom(&self, atom_name: &str) -> Option<String>
fn get_compilation_object_for_atom(&self, atom_name: &str) -> Option<&[u8]>
Trait Implementations§
source§impl Debug for PrefixMapCompilation
impl Debug for PrefixMapCompilation
source§impl Default for PrefixMapCompilation
impl Default for PrefixMapCompilation
source§fn default() -> PrefixMapCompilation
fn default() -> PrefixMapCompilation
Returns the “default value” for a type. Read more
source§impl PartialEq for PrefixMapCompilation
impl PartialEq for PrefixMapCompilation
source§fn eq(&self, other: &PrefixMapCompilation) -> bool
fn eq(&self, other: &PrefixMapCompilation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PrefixMapCompilation
Auto Trait Implementations§
impl Freeze for PrefixMapCompilation
impl RefUnwindSafe for PrefixMapCompilation
impl Send for PrefixMapCompilation
impl Sync for PrefixMapCompilation
impl Unpin for PrefixMapCompilation
impl UnwindSafe for PrefixMapCompilation
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Pointee for T
impl<T> Pointee for T
§impl<T> Upcastable for T
impl<T> Upcastable for T
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
§fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
upcast boxed dyn