Skip to content

Build and Install

Soichiro Isshiki edited this page Feb 1, 2025 · 3 revisions

Build and run

(1) Install nightly Rust.

First of all, install Rust nightly. Check here to install Rust

Caution!! only nightly Rust works for monoruby. See here to work with nightly Rust.

(2) Clone this repository.

> git clone https://github.com/sisshiki1969/monoruby.git
> cd monoruby

(3) Build and run monoruby.

> cargo run test.rb

or

> cargo run --release -- test.rb

for release build.

one liner.

> cargo run -- -e "puts 100"

(4) Launch REPL.

> cargo run --bin irm

or

> bin/irm

Install

To install monoruby,

> cargo install --path monoruby

Now, you can play with monoruby,

> monoruby test.rb

and its REPL.

> irm