Skip to main content

BuildInfo

Struct BuildInfo 

Source
pub struct BuildInfo {
Show 18 fields pub wasm_runtime_created: &'static str, pub wasm_runtime_size: &'static str, pub wasm_runtime_blake3_hash: &'static str, pub wasm_runtime_wasmtime_version: &'static str, pub package_name: &'static str, pub package_version: &'static str, pub features: Vec<&'static str>, pub target: &'static str, pub opt_level: &'static str, pub profile: &'static str, pub debug: bool, pub rustc: &'static str, pub built_time_utc: &'static str, pub ci_platform: Option<&'static str>, pub git_commit_hash: Option<&'static str>, pub git_head_ref: Option<&'static str>, pub git_version: Option<&'static str>, pub git_dirty: bool,
}
Expand description

The build information for the hyperlight-wasm crate

Fields§

§wasm_runtime_created: &'static str

The date and time the hyperlight-wasm-runtime was built

§wasm_runtime_size: &'static str

The size of the hyperlight-wasm-runtime binary

§wasm_runtime_blake3_hash: &'static str

The blake3 hash of the hyperlight-wasm-runtime binary

§wasm_runtime_wasmtime_version: &'static str

The version of wasmtime being used by hyperlight-wasm

§package_name: &'static str

The name of the package

§package_version: &'static str

The version of the package

§features: Vec<&'static str>

The features enabled for the package

§target: &'static str

The target triple for the build

§opt_level: &'static str

The optimization level for the build

§profile: &'static str

The profile for the build

§debug: bool

Whether the build was in debug mode

§rustc: &'static str

The path to rustc used for the build

§built_time_utc: &'static str

The date and time the package was built

§ci_platform: Option<&'static str>

The CI platform used for the build

§git_commit_hash: Option<&'static str>

The git commit hash for the build

§git_head_ref: Option<&'static str>

The git head ref for the build

§git_version: Option<&'static str>

The git version for the build

§git_dirty: bool

Whether the git repo was dirty when the package was built

Implementations§

Source§

impl BuildInfo

Source

pub fn get() -> Self

Get the build information

Trait Implementations§

Source§

impl Default for BuildInfo

Source§

fn default() -> Self

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

impl Display for BuildInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more