128 releases

0.9.124 Jan 5, 2026
0.9.123 Dec 18, 2025
0.9.117 Aug 1, 2025
0.9.116 Jun 2, 2025
0.9.28 Jul 28, 2022

#40 in Memory management

Download history 35124/week @ 2025-09-30 39511/week @ 2025-10-07 40551/week @ 2025-10-14 38543/week @ 2025-10-21 35296/week @ 2025-10-28 37225/week @ 2025-11-04 38315/week @ 2025-11-11 39163/week @ 2025-11-18 30351/week @ 2025-11-25 42216/week @ 2025-12-02 48579/week @ 2025-12-09 54771/week @ 2025-12-16 36458/week @ 2025-12-23 40778/week @ 2025-12-30 58904/week @ 2026-01-06 44544/week @ 2026-01-13

192,013 downloads per month
Used in 13 crates (8 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