Exception: Gem::Ext::CargoBuilder::DylibNotFoundError
- Inherits:
 - 
      StandardError
      
        
- Object
 - StandardError
 - Gem::Ext::CargoBuilder::DylibNotFoundError
 
 
- Defined in:
 - lib/rubygems/ext/cargo_builder.rb
 
Overview
Error raised when no cdylib artifact was created
Instance Method Summary collapse
- 
  
    
      #initialize(dir)  ⇒ DylibNotFoundError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of DylibNotFoundError.
 
Constructor Details
#initialize(dir) ⇒ DylibNotFoundError
Returns a new instance of DylibNotFoundError.
      312 313 314 315 316 317 318 319 320 321 322 323  | 
    
      # File 'lib/rubygems/ext/cargo_builder.rb', line 312 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  |