Project

rb_sys

0.02
The project is in a healthy, maintained state
Helpers for compiling Rust extensions for ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies
 Project Readme

rb-sys

Crates.io Gem Join the discussion .github/workflows/ci.yml

The primary goal of rb-sys is to make building native Ruby extensions in Rust easier than it would be in C. If it's not easy, it's a bug.

Features

  • GitHub action to easily cross compile in CI
  • Integration with rake-compiler
  • Cross compilation of gems
  • Auto-generated Rust bindings for libruby classes

Supported Platforms

We support cross compilation to the following platforms:

Platform Supported Docker Image
x86_64-linux rbsys/x86_64-linux:0.9.27
aarch64-linux rbsys/aarch64-linux:0.9.27
arm-linux rbsys/arm-linux:0.9.27
arm64-darwin rbsys/arm64-darwin:0.9.27
x64-mingw32 rbsys/x64-mingw32:0.9.27
x64-mingw-ucrt rbsys/x64-mingw-ucrt:0.9.27
x86-mingw32
x86-linux

This information is also available in the ./data directory for automation purposes.

Usage

Please see the examples to see a full example of how to use rb-sys.

Contributing

See the CONTRIBUTING.md file for information about setting up a development environment.

Bug reports and pull requests are welcome on GitHub at https://github.com/oxidize-rb/rb-sys.

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.