class Gem::Ext::CargoBuilder::DylibNotFoundError

当没有创建 cdylib 工件时引发的错误

公共类方法

new(dir) 点击切换源代码
调用父类方法
# File rubygems/ext/cargo_builder.rb, line 335
    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