#build-dependencies #ruby

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

✓ Uses Rust 2018 edition

0.0.8 May 17, 2019
0.0.7 May 16, 2019

#45 in Build Utils

Download history 16/week @ 2019-11-27 8/week @ 2019-12-04 138/week @ 2019-12-11 2/week @ 2019-12-18 8/week @ 2019-12-25 1/week @ 2020-01-01 16/week @ 2020-01-08 12/week @ 2020-01-15 1/week @ 2020-01-29 2/week @ 2020-02-05 10/week @ 2020-02-12 17/week @ 2020-02-19 31/week @ 2020-02-26 16/week @ 2020-03-04 9/week @ 2020-03-11

101 downloads per month
Used in rosy

MIT/Apache and maybe MPL-2.0

66KB
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–1.8MB
~46K SLoC