26 releases

0.9.29 Aug 3, 2022
0.9.28 Jul 28, 2022
0.9.18 Jun 30, 2022
0.1.14 Jun 28, 2022

#114 in Build Utils

Download history 342/week @ 2022-06-18 1656/week @ 2022-06-25 1300/week @ 2022-07-02 1854/week @ 2022-07-09 3329/week @ 2022-07-16 4342/week @ 2022-07-23 3556/week @ 2022-07-30 1518/week @ 2022-08-06

13,058 downloads per month
Used in 3 crates (via rb-sys)

MIT/Apache

29KB
749 lines

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
x86_64-linux
aarch64-linux
arm-linux
x86_64-darwin
arm64-darwin
x64-mingw32
x64-mingw-ucrt
x86-mingw32
x86-linux

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.

Dependencies

~1–1.3MB
~38K SLoC