[][src]Crate artichoke_core

artichoke-core

artichoke-core crate provides a set of traits that, when implemented, provide a complete Ruby interpreter.

artichoke-backend is one implementation of the artichoke-core traits.

Core APIs

artichoke-core contains traits for the core set of APIs an interpreter must implement. The traits in artichoke-core define:

Some of the core APIs a Ruby implementation must provide are evaluating code, converting Rust data structures to boxed Values on the interpreter heap, and interning Symbols.

Modules

constant

Define constants on an interpreter.

convert

Convert between Rust and Ruby objects.

eval

Run code on an Artichoke interpreter.

file

File-backed Rust extensions for the Artichoke VM.

globals

Get and set global variables on an interpreter.

intern

Intern Symbols on an interpreter.

io

I/O read and write APIs.

load

Load Ruby and Rust sources into the VM.

parser

Parse code on an Artichoke interpreter.

prelude

A "prelude" for users of the artichoke-core crate.

prng

Interpreter global psuedorandom number generator.

regexp

Track Regexp global state.

release_metadata

Information about an Artichoke build.

top_self

Expose the global context, called top self, to the interpreter.

types

Ruby and Rust type mappings.

value

Types that implement Value can be represented in the Artichoke VM.

warn

Emit warnings during interpreter execution.