Tool Open source
Magnus is a Rust library for integrating Rust with Ruby. It lets developers write Ruby extension gems in Rust or call Ruby code from a Rust binary, with bindings for defining Ruby functions and methods, calling Ruby methods, and converting values between the languages. Rust structs and enums can be wrapped as Ruby objects using the `#[magnus::wrap]` macro or the `TypedData` trait; functions and methods support automatic type conversion and return Ruby-style argument or type errors when conversions fail.
1 use taken from transcripts — each links to the moment in the video.
Magnus is a helper library for integrating Rust with Ruby. It provides some assistance with the bridge, though less than PyO3 and Neon.
1 in the library.