pub struct ReleaseMetadata<'a> {
    pub copyright: &'a str,
    pub description: &'a str,
    pub engine: &'a str,
    pub engine_version: &'a str,
    pub patchlevel: &'a str,
    pub platform: &'a str,
    pub release_date: &'a str,
    pub revision: &'a str,
    pub ruby_version: &'a str,
    pub compiler_version: Option<&'a str>,
}
Expand description

Information about an Artichoke build.

This build information is injected into artichoke-backend by the artichoke crate at interpreter initialization time.

Fields§

§copyright: &'a str

Copyright information.

This value will populate the RUBY_COPYRIGHT constant.

Examples

artichoke - Copyright (c) 2019-2020 Ryan Lopopolo \<rjl@hyperbo.la\>
§description: &'a str

A description of the current build.

This value will populate the RUBY_DESCRIPTION constant.

Examples

artichoke 0.1.0-pre.0 (2021-01-12 revision 4009) [x86_64-apple-darwin]
§engine: &'a str

The engine, or VM, used in the current build.

This value will populate the RUBY_ENGINE constant.

Examples

artichoke-mruby
§engine_version: &'a str

The version of the engine, or VM, used in the current build.

This value will populate the RUBY_ENGINE_VERSION constant.

Examples

0.1.0-pre.0
§patchlevel: &'a str

The patch level the current build.

This value will populate the RUBY_PATCHLEVEL constant.

Examples

0
§platform: &'a str

The target triple of the platform this build targets.

The platform will be a Rust or LLVM target triple.

This value will populate the RUBY_PLATFORM constant.

Examples

x86_64-apple-darwin
§release_date: &'a str

The build date of this release.

This value will populate the RUBY_RELEASE_DATE constant.

Examples

2021-01-12
§revision: &'a str

The target MRI Ruby version for this build.

This value will populate the RUBY_VERSION constant.

Examples

3.1.2
§ruby_version: &'a str

The target MRI Ruby version for this build.

This value will populate the RUBY_VERSION constant.

Examples

3.1.2
§compiler_version: Option<&'a str>

A description of the compiler used to build Artichoke.

This value will populate the ARTICHOKE_COMPILER_VERSION constant.

Examples

rustc 1.49.0 (e1884a8e3 2020-12-29) on x86_64-apple-darwin

Implementations§

Set copyright information.

This value will populate the RUBY_COPYRIGHT constant.

Examples
artichoke - Copyright (c) 2019-2020 Ryan Lopopolo \<rjl@hyperbo.la\>

Set a description of the current build.

This value will populate the RUBY_DESCRIPTION constant.

Examples
artichoke 0.1.0-pre.0 (2021-01-12 revision 4009) [x86_64-apple-darwin]

Set the engine, or VM, used in the current build.

This value will populate the RUBY_ENGINE constant.

Examples
artichoke-mruby

Set the version of the engine, or VM, used in the current build.

This value will populate the RUBY_ENGINE_VERSION constant.

Examples
0.1.0-pre.0

Set the patch level the current build.

This value will populate the RUBY_PATCHLEVEL constant.

Examples
0

Set the target triple of the platform this build targets.

The platform will be a Rust or LLVM target triple.

This value will populate the RUBY_PLATFORM constant.

Examples
x86_64-apple-darwin

Set the build date of this release.

This value will populate the RUBY_RELEASE_DATE constant.

Examples
2021-01-12

Set the target MRI Ruby version for this build.

This value will populate the RUBY_VERSION constant.

Examples
3.1.2

Set the target MRI Ruby version for this build.

This value will populate the RUBY_VERSION constant.

Examples
3.1.2

Set a description of the compiler used to build Artichoke.

This value will populate the ARTICHOKE_COMPILER_VERSION constant.

Examples
rustc 1.49.0 (e1884a8e3 2020-12-29) on x86_64-apple-darwin

Copyright information.

This value will populate the RUBY_COPYRIGHT constant.

Examples
artichoke - Copyright (c) 2019-2020 Ryan Lopopolo \<rjl@hyperbo.la\>

A description of the current build.

This value will populate the RUBY_DESCRIPTION constant.

Examples
artichoke 0.1.0-pre.0 (2021-01-12 revision 4009) [x86_64-apple-darwin]

The engine, or VM, used in the current build.

This value will populate the RUBY_ENGINE constant.

Examples
artichoke-mruby

The version of the engine, or VM, used in the current build.

This value will populate the RUBY_ENGINE_VERSION constant.

Examples
0.1.0-pre.0

The patch level the current build.

This value will populate the RUBY_PATCHLEVEL constant.

Examples
0

The target triple of the platform this build targets.

The platform will be a Rust or LLVM target triple.

This value will populate the RUBY_PLATFORM constant.

Examples
x86_64-apple-darwin

The build date of this release.

This value will populate the RUBY_RELEASE_DATE constant.

Examples
2021-01-12

The target MRI Ruby version for this build.

This value will populate the RUBY_VERSION constant.

Examples
3.1.2

The target MRI Ruby version for this build.

This value will populate the RUBY_VERSION constant.

Examples
3.1.2

A description of the compiler used to build Artichoke.

This value will populate the ARTICHOKE_COMPILER_VERSION constant.

Examples
rustc 1.49.0 (e1884a8e3 2020-12-29) on x86_64-apple-darwin

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Copyright information. Read more
A description of the current build. Read more
The engine, or VM, used in the current build. Read more
The version of the engine, or VM, used in the current build. Read more
The patch level the current build. Read more
The target triple of the platform this build targets. Read more
The build date of this release. Read more
The revision count of the Artichoke git repository used for this build. Read more
The target MRI Ruby version for this build. Read more
A description of the compiler used to build Artichoke. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.