127 releases

new 0.9.123 Dec 18, 2025
0.9.117 Aug 1, 2025
0.9.116 Jun 2, 2025
0.9.111 Feb 28, 2025
0.9.28 Jul 28, 2022

#90 in Memory management

Download history 34220/week @ 2025-08-27 36219/week @ 2025-09-03 36311/week @ 2025-09-10 35176/week @ 2025-09-17 35933/week @ 2025-09-24 36638/week @ 2025-10-01 40360/week @ 2025-10-08 40036/week @ 2025-10-15 36567/week @ 2025-10-22 34010/week @ 2025-10-29 39481/week @ 2025-11-05 37690/week @ 2025-11-12 39975/week @ 2025-11-19 29861/week @ 2025-11-26 42539/week @ 2025-12-03 41411/week @ 2025-12-10

160,721 downloads per month
Used in 12 crates (7 directly)

MIT/Apache

185KB
4K SLoC

rb-sys

Join the discussion

Autogenerated Rust bindings for Ruby. Uses the rust-bindgen crate to generate bindings from the ruby.h header.

Notice

This is a very low-level library. If you are looking to write a gem in Rust, you should probably use https://github.com/matsadler/magnus crate, with the rb-sys-interop feature.

If you actually need raw/unsafe bindings to libruby, then this crate is for you!

Documentation

For comprehensive documentation, please refer to the Ruby on Rust Book, which includes:

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0–1.9MB
~37K SLoC