#ruby #build-dependencies #compile #version #download #helper #linker

build aloxide

A helper tool for Cargo build scripts (build.rs) for compiling and/or linking to a given Ruby library version for use in Rust code

8 releases

0.0.8 May 17, 2019
0.0.7 May 16, 2019

#499 in Build Utils


Used in rosy

MIT/Apache

67KB
1.5K SLoC

aloxide banner travis badge crates.io downloads API docs

Compile Ruby as a Rust build.rs step... and eventually more (see goals).

Goals

The plan for aloxide is to:

  • Compile Ruby for each supported platform

  • Link to Ruby's library in a crate's build.rs file

  • Make pre-compiled Rubies that are suitable for various versions of the same operating system

  • Cross-compile Ruby from one platform to another

    • Compile for {i686,x86_64}-pc-windows-gnu from Linux or macOS

    • Compile for {i686,x86_64}-unknown-linux-gnu from macOS or Windows

  • Create a command-line interface (CLI) that downloads Ruby's sources and compiles them, or downloads pre-compiled binaries/libraries, for each supported platform

Supported Platforms

See issue #1 for more details.

  • Linux

  • macOS

  • Windows

Cross-Compiling

Work in progress...

License

This project is released under either:

at your choosing.

Dependencies

~0.2–11MB
~132K SLoC