End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Ext::CargoBuilder#rename_cdylib_for_ruby_compatibility
rename_cdylib_for_ruby_compatibility(dest_path)
lib/rubygems/ext/cargo_builder.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/ext/cargo_builder.rb, line 138
def rename_cdylib_for_ruby_compatibility(dest_path)
new_path = final_extension_path(dest_path)
FileUtils.cp(cargo_dylib_path(dest_path), new_path)
new_path
end
Ruby expects the dylib to follow a file name convention for loading