End of Life Ruby 3.1 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.1.3/lib/rubygems/ext/cargo_builder.rb, line 128
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
See also
#rb_config_env
#ruby_static?
#profile_target_directory
#rustc_dynamic_linker_flags
also in
3.2