danielpclark / rutie

“The Tie Between Ruby and Rust.”
MIT License
942 stars 62 forks source link

How to distribute the gem? #83

Closed Hywan closed 5 years ago

Hywan commented 5 years ago

Hello :-),

Thanks for the awesome work. I've been able to write my extension, and it works like a charm.

Now, I want to publish the gem. I use rake build to build the .gem file (in a pkg/ directory). I understand I can publish this .gem file on rubygems.org for instance. I wanted to try to install this gem locally. So I moved to the /tmp/foo directory, and run gem install --install-dir . …/my-extension.gem, which works, but the extension isn't compiled with Cargo.

So my question is: How a user installs a .gem produced by Rutie, i.e. a .gem that needs to be compiled?

Thanks!

Hywan commented 5 years ago

OK, I forgot to add spec.extensions = %w(Rakefile) in my gemspec file. Now it compiles when installing the Gem!