Bundler: Generate gem skeleton with Rust extension
DRANK

Do you think dynamically typed interpreted Ruby language and statically typed compiled Rust language could be friends? Yes, they can! And actually, they are!Officially it all started when YJIT was ported to Rust and Ruby codebase has officially onboarded Rust code. This friendship matured when RubyGems 3.3.11 (with a new Add cargo builder for rust extensions feature) was released capable of compiling Rust-based extensions during gem installation process (similar to well-known C-based gem extensions like nokogiri, pg or puma).And now, with Bundler 2.4, bundle gem skeleton generator can provide all the glue you need to start using Rust inside your gems thanks to the new --ext=rust parameter!What’s new?Thanks to new parameter it is possible to generate simple Rust-based gem extension.Make sure to use RubyGems 3.4.6 or higher for the best experience.Notice I already have bundle gem command configured. Your output can differ. When running bundle gem for the first time, it will interactive…

bundler.io
Related Topics: Rust
1 comments