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-4.0.0/lib/rubygems/ext/cargo_builder.rb, line 193
def cargo_dylib_path(dest_path, crate_name)
so_ext = RbConfig::CONFIG["SOEXT"]
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 · 3.4 · 3.3 · 3.2 · 3.1