123456789_123456789_123456789_123456789_123456789_

Exception: Gem::Ext::CargoBuilder::DylibNotFoundError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, StandardError
Instance Chain:
self, StandardError
Inherits: StandardError
  • Object
Defined in: lib/rubygems/ext/cargo_builder.rb

Overview

Error raised when no cdylib artifact was created

Class Method Summary

Constructor Details

.new(dir) ⇒ DylibNotFoundError

[ GitHub ]

  
# File 'lib/rubygems/ext/cargo_builder.rb', line 347

def initialize(dir)
  files = Dir.glob(File.join(dir, "**", "*")).map {|f| "- #{f}" }.join "\n"

  super <<~MSG
    Dynamic library not found for Rust extension (in #{dir})

    Make sure you set "crate-type" in Cargo.toml to "cdylib"

    Found files:
    #{files}
  MSG
end