class RbSys::CargoBuilder

def write_deffile(dest_path)

def write_deffile(dest_path)
  deffile_path = File.join(dest_path, "#{spec.name}-#{RbConfig::CONFIG["arch"]}.def")
  unless dry_run
    FileUtils.mkdir_p(dest_dir)
    export_prefix = makefile_config("EXPORT_PREFIX") || ""
    File.open(deffile_path, "w") do |f|
      f.puts "EXPORTS"
      f.puts "#{export_prefix.strip}Init_#{spec.name}"
    end
  end
  deffile_path
end