On this page
End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class · Ruby 3.2
Gem::Ext::CargoBuilder
This class is used by rubygems to build Rust extensions. It is a thin-wrapper over the ‘cargo rustc` command which takes care of building Rust code in a way that Ruby can use.
Class methods 1
Instance methods 31
#build
#build_crate
#build_env
#cargo_command
#cargo_crate_name
#cargo_dylib_path
#cargo_rustc_args
#darwin_target?
#final_extension_path
#finalize_directory
#get_relative_path
#ldflag_to_link_modifier
#libruby_args
#linker_args
#makefile_config
#maybe_resolve_ldflag_variable
#mingw_target?
#mkmf_libpath
#msvc_target?
#mswin_link_args
#platform_specific_rustc_args
#rb_config_env
#rename_cdylib_for_ruby_compatibility
#ruby_static?
#rustc_dynamic_linker_flags
#rustc_lib_flags
#so_ext
#split_flags
#validate_cargo_build!
#win_target?
#write_deffile
Attributes
Read & Write
No documentation available
Read & Write
No documentation available
Read & Write
No documentation available