0.2.0
Magnus 0.2.0 brings a number of new features and fixes to Magnus.
Magnus is a Rust library binding to the C API of the Ruby programming language. Magnus lets you write Ruby extension libraries in Rust, or embed Ruby in your Rust program.
This release brings improvements to the documentation, adding doc examples to large parts of the API. As the doc examples are run as part of the tests, this also improves the test coverage in Magnus.
scan_args
and get_kwargs
functions have been implemented for complex argument handing. These functions are driven by the type parameters in their return type, adding a compile-time checked layer atop the base API exposed by Ruby.
Value::block_call
allows for calling Ruby methods, passing a Rust closure as a 'block' parameter.
See CHANGELOG.md for more details.