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
13,058 downloads per month
Used in 3 crates
(via rb-sys)
29KB
749 lines
rb-sys
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
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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