Coder Social home page Coder Social logo

marstaik / rb-sys Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oxidize-rb/rb-sys

0.0 0.0 0.0 4.1 MB

Easily build Ruby native extensions in Rust

Home Page: https://oxidize-rb.github.io/rb-sys/

License: Apache License 2.0

Shell 3.83% Ruby 23.67% C 1.12% Rust 70.51% Nix 0.27% Dockerfile 0.60%

rb-sys's Introduction

rb-sys

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

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

  • Battle-tested Rust bindings for the Ruby C API
  • Support for Ruby 2.4+
  • Supports all major platforms (Linux, macOS, Windows)
  • Cross compilation of gems
  • Integration with rake-compiler

New to rb-sys?

Quick links

Usage

Below are some examples of how to use rb-sys to build native Rust extensions. Use these as a starting point for your building your own gem.

Supported Toolchains

  • Ruby: 2.4+ (for full compatibility with Rubygems)
  • Rust: 1.60+

Supported Platforms

We support cross compilation to the following platforms (this information is also available in the ./data directory for automation purposes):

Platform Supported Docker Image
x86_64-linux โœ… rbsys/x86_64-linux:0.9.91
x86_64-linux-musl โœ… rbsys/x86_64-linux-musl:0.9.91
aarch64-linux โœ… rbsys/aarch64-linux:0.9.91
aarch64-linux-musl โœ… rbsys/aarch64-linux-musl:0.9.91
arm-linux โœ… rbsys/arm-linux:0.9.91
arm64-darwin โœ… rbsys/arm64-darwin:0.9.91
x64-mingw32 โœ… rbsys/x64-mingw32:0.9.91
x64-mingw-ucrt โœ… rbsys/x64-mingw-ucrt:0.9.91
mswin โœ… not available on Docker

Getting Help

We make a concerted effort to help out new users. If you have questions, please join our Slack and post your question in the #general channel. Alternatively, you can open an issue and we'll try to help you out.

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.

rb-sys's People

Contributors

ankane avatar ball-hayden avatar burke avatar dankm avatar dependabot[bot] avatar dwdking avatar dylanahsmith avatar eliias avatar ggmichaelgo avatar gjtorikian avatar huacnlee avatar ianks avatar jbourassa avatar marvinthepa avatar matsadler avatar mpalmer avatar ngroman avatar peterzhu2118 avatar sliiser avatar stanhu avatar wfchandler avatar y-yagi avatar youssef-mak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.