7

I'm creating a m3u8 generator/parser for crystal, yet I want to use it later with ruby. Is that possible/easy to do it?  

Nakilon
  • 34,866
  • 14
  • 107
  • 142
Marcelo Boeira
  • 860
  • 8
  • 22
  • 2
    Yes, you export the functions in your crystal library to C and then create a ruby wrapper for that, see https://firmhouse.com/blogwrapping-up-a-c-library-for-ruby-it-s-actually-pretty-easy/ – Kimmo Lehto Feb 01 '16 at 12:59

1 Answers1

3

Yes, you can create Ruby extension using Crystal. It's enough to bind Ruby lib. There's an interesting presentation by Anna Kazakowa regarding that topic.

See also:

Sija
  • 175
  • 2
  • 5