[][src]Trait artichoke_backend::core::ReleaseMetadata

pub trait ReleaseMetadata {
    pub fn ruby_copyright(&self) -> &str;
pub fn ruby_description(&self) -> &str;
pub fn ruby_engine(&self) -> &str;
pub fn ruby_engine_version(&self) -> &str;
pub fn ruby_patchlevel(&self) -> &str;
pub fn ruby_platform(&self) -> &str;
pub fn ruby_release_date(&self) -> &str;
pub fn ruby_revision(&self) -> &str;
pub fn ruby_version(&self) -> &str;
pub fn artichoke_compiler_version(&self) -> Option<&str>; }

Information about an Artichoke build.

Implementations of this trait are used to set global Ruby constants that describe the current build.

Required methods

Copyright information.

This value will populate the RUBY_COPYRIGHT constant.

Example

Copyright (c) 2019-2020 Ryan Lopopolo rjl@hyperbo.la

pub fn ruby_description(&self) -> &str[src]

A description of the current build.

This value will populate the RUBY_DESCRIPTION constant.

Example

artichoke 0.1.0 (2020-06-05) [x86_64-darwin]

pub fn ruby_engine(&self) -> &str[src]

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

This value will populate the RUBY_ENGINE constant.

Example

artichoke-mruby

pub fn ruby_engine_version(&self) -> &str[src]

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

This value will populate the RUBY_ENGINE_VERSION constant.

Example

0.1.0

pub fn ruby_patchlevel(&self) -> &str[src]

The patch level the current build.

This value will populate the RUBY_PATCHLEVEL constant.

pub fn ruby_platform(&self) -> &str[src]

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.

pub fn ruby_release_date(&self) -> &str[src]

The build date of this release.

This value will populate the RUBY_RELEASE_DATE constant.

pub fn ruby_revision(&self) -> &str[src]

The revision count of the Artichoke git repo used for this build.

This value will populate the RUBY_REVISION constant.

pub fn ruby_version(&self) -> &str[src]

The target MRI Ruby version for this build.

This value will populate the RUBY_VERSION constant.

Example

2.6.3

pub fn artichoke_compiler_version(&self) -> Option<&str>[src]

A description of the compiler used to build Artichoke.

This value will populate the ARTICHOKE_COMPILER_VERSION constant.

Example

rustc 1.44.0 (49cae5576 2020-06-01)

Loading content...

Implementors

impl<'a> ReleaseMetadata for ReleaseMetadata<'a>[src]

Loading content...