Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Ext::CargoBuilder#cargo_dylib_path
cargo_dylib_path(dest_path, crate_name)
lib/rubygems/ext/cargo_builder.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/ext/cargo_builder.rb, line 187
def cargo_dylib_path(dest_path, crate_name)
prefix = so_ext == "dll" ? "" : "lib"
path_parts = [dest_path]
path_parts << ENV["CARGO_BUILD_TARGET"] if ENV["CARGO_BUILD_TARGET"]
path_parts += ["release", "#{prefix}#{crate_name}.#{so_ext}"]
File.join(*path_parts)
end
No documentation available
See also
#cargo_crate_name
#cargo_rustc_args
#cargo_command
#darwin_target?
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1