Home

Awesome

<div align="center">

frum

A little bit fast and modern Ruby version manager written in Rust

github workflow status crates brew aur

usage

</div>

Features

Goals

Benchmark

eval "$(frum init)" runs about 6 times faster than eval "$(rbenv init -)".

CommandMean [ms]Min [ms]Max [ms]Relative
eval "$(rbenv init -)"49.5 ± 2.146.257.26.14 ± 0.50
eval "$(frum init)"8.1 ± 0.77.011.81.00 ± 0.11
eval "$(frum init)" (pre-release)8.1 ± 0.67.211.71.00
CommandMean [ms]Min [ms]Max [ms]Relative
rbenv239628.1 ± 2030.2237681.6245162.61.04 ± 0.01
frum232944.6 ± 1224.0230565.4234863.51.01 ± 0.01
frum (pre-release)230366.5 ± 882.7228454.2232340.51.00

For more information, please see #16.

Installation

Homebrew (Linux/macOS)

If you’re using Homebrew or Linuxbrew, install the frum formula. For more information, please see Install Ruby with Frum written by Daniel Kehoe.

$ brew install frum

Arch Linux

If you’re using Arch Linux, install the frum-bin or frum package using your favorite AUR helper.

$ yay -S frum-bin

Cargo (Linux/macOS)

If you already have a Rust environment set up, you can use the cargo install command:

$ cargo install frum

Using a release binary (Linux/macOS)

Usage

Shell Setup

You need to run some shell commands before using frum. All you have to do is evaluate the output of frum init. Check out the following guides for the shell you use:

Bash

add the following to your .bashrc:

eval "$(frum init)"

Zsh

add the following to your .zshrc:

eval "$(frum init)"

Fish shell

create ~/.config/fish/conf.d/frum.fish add this line to it:

frum init | source

Options

Subcommands

Ruby configuration options

Options to configure Ruby can be passed to the frum install command.

$ frum install --with-openssl-dir=<ssl_dir> # Specify the OpenSSL directory
$ frum install --with-jemalloc # Use jemalloc as allocator

You can also specify many other options that will be listed when running ./configure -h.

Contribution

Contributions, issues and pull requests are welcome!

Reference