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?
Asked
Active
Viewed 737 times
7
-
2Yes, 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 Answers
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