Summary
The platform-specific gem variants (e.g., ruby_wasm-2.9.0-x86_64-linux) have required_ruby_version: < 3.5.dev, >= 3.2. This prevents installation on Ruby 4.0.
The pure Ruby variant (ruby_wasm-2.9.0, 147 KB) installs and works on Ruby 4.0 but requires a Rust toolchain for compilation.
Environment
- Ruby: 4.0.2 (host)
- ruby_wasm: 2.9.0
- Platform: x86_64-linux
Steps to reproduce
$ ruby -v
ruby 4.0.2
$ gem install ruby_wasm
ERROR: ruby_wasm-2.9.0-x86_64-linux requires ruby version < 3.5.dev, >= 3.2
Workaround
Use force_ruby_platform: true in Gemfile to force the pure Ruby variant:
gem "ruby_wasm", force_ruby_platform: true
This requires a Rust toolchain and adds build time for native extension compilation.
Note
#631 resolved an installation failure for the pure Ruby variant on Ruby 4.0. However, the platform gem (precompiled binary) is still not available for Ruby 4.0 as of v2.9.0.
Request
Please consider releasing platform gem variants for Ruby 4.0.
Related
#631 (pure Ruby variant install issue, now closed)
Summary
The platform-specific gem variants (e.g.,
ruby_wasm-2.9.0-x86_64-linux) haverequired_ruby_version: < 3.5.dev, >= 3.2. This prevents installation on Ruby 4.0.The pure Ruby variant (
ruby_wasm-2.9.0, 147 KB) installs and works on Ruby 4.0 but requires a Rust toolchain for compilation.Environment
Steps to reproduce
Workaround
Use force_ruby_platform: true in Gemfile to force the pure Ruby variant:
This requires a Rust toolchain and adds build time for native extension compilation.
Note
#631 resolved an installation failure for the pure Ruby variant on Ruby 4.0. However, the platform gem (precompiled binary) is still not available for Ruby 4.0 as of v2.9.0.
Request
Please consider releasing platform gem variants for Ruby 4.0.
Related
#631 (pure Ruby variant install issue, now closed)