4 ms·
Can anyone post a link to a RubyGem written with a Rust extension??
by andyl 11y ago
Can anyone post a link to a RubyGem written with a Rust extension??
- steveklabnik 11y agohttps://github.com/steveklabnik/rust_example https://github.com/steveklabnik/rust_example is one way to do it, albiet the most complex one: a thin C wrapper over the Rust, which is then a C extension for Ruby. Easier ones are using FFI or Fiddle.
- vysakh0 11y agoI think they are referring to this http://blog.skylight.io/bending-the-curve-writing-safe-fast-native-gems-with-rust/ http://blog.skylight.io/bending-the-curve-writing-safe-fast-... in the blogpost
- carllerche 11y agoHere is how we bind the Skylight gem to the Rust bit: https://github.com/skylightio/skylight-ruby/blob/master/ext/skylight_native.c https://github.com/skylightio/skylight-ruby/blob/master/ext/...
- deleted 11y ago[deleted]
- xngzng 11y agoHere's PyCon2015 talk on how to call Rust from Python: https://www.youtube.com/watch?v=3CwJ0MH-4MA https://www.youtube.com/watch?v=3CwJ0MH-4MA