paketo-buildpacks/mri

Add support to YJIT during MRI compilation

Closed this issue · 3 comments

Describe the Enhancement

YJIT was declared production-ready on Ruby 3.2 but using it requires having rustc available during MRI configure/compile process.

Possible Solution

Making rust available on the compile Dockerfile for MRI should be all that's needed to support YJIT during runtime. We could take some inspiration from the official docker ruby image which installs Rust just for that: https://github.com/docker-library/ruby/blob/c473741514de6aa1e3ccdf3a9c6df0aa71348ce3/3.2/bullseye/Dockerfile

Motivation

Using YJIT can make ruby code more efficient during runtime.

having yjit in this buildpack would really help our developers