Crates.io | mruby-sys |
lib.rs | mruby-sys |
version | 0.2.0 |
source | src |
created_at | 2019-06-04 18:52:27.441418 |
updated_at | 2019-06-06 16:23:31.688203 |
description | low level rust bindings for mruby |
homepage | |
repository | https://github.com/MattMcDonald/mruby-sys |
max_upload_size | |
id | 138983 |
size | 2,346,685 |
Low level mruby bindings for rust
The crate will build mruby and statically link it into your Rust application. Currently it uses mruby 2.0.1 included as a submodule in the vendor/ directory.
This is currently a very early WIP so very basic things might not work, or worse they may appear to work but do very unsafe things. There is a simple hello world test that runs on my machine.
Most of the work happens in the build.rs script which:
Copies the mruby source in the vendor/ directory into the target/ directory
Builds mruby in the target/ directory using mruby's minirake based build system
Uses bindgen to generate Rust bindings based on the wrapper.h file in the include/ directory. These bindings and their tests are rexported out in src/lib.rs.
Copyright © 2019, Matthew McDonald. Released under the MIT License.