Rosy
High-level bindings of Ruby's C API for Rust.
Installation
This crate is available on crates.io and can be used by adding the
following to your project's Cargo.toml
:
[]
= "0.0.5"
Rosy has functionality that is only available for certain Ruby versions. The following features can currently be enabled:
ruby_2_6
For example:
[]
= "0.0.5"
= ["ruby_2_6"]
Finally add this to your crate root (main.rs
or lib.rs
):
extern crate rosy;
Usage
Rosy allows you to perform many operations over Ruby objects in a way that feels very natural in Rust.
use String;
// The VM should be initialized before doing anything
init.expect;
let string = String from;
string.call.unwrap;
assert_eq!;
License
This project is made available under either the conditions of the MIT License or Apache License 2.0 at your choosing.
See LICENSE.md
.