This repository contains the (preliminary) Rust bindings for Inochi2D using the Inochi2D C SDK.
NOTE: The bindings pull in a large chunk of the D runtime, including the Garbage Collector.
To build these bindings, you need ldc, dub, and git in addition to the normal rust toolchain.
The build.rs
will attempt to clone Inochi2D and Inochi2D-c into the target directory and build them from source on first build.
You should only need to build the crate as you would normally.
$ cargo build
To build the examples, make sure you have the submodules checked out to ensure the example Inochi2D puppets are where the examples expect them to be.
NOTE: You need git lfs in order to properly clone the example models
You can run the main OpenGL example with:
$ cargo run --example midori
These bindings are licensed under the BSD-2-Clause license, the full text of which can be found in the LICENSE file.