Crates.io | lib-ruby-parser-bindings |
lib.rs | lib-ruby-parser-bindings |
version | 0.13.0 |
source | src |
created_at | 2021-08-23 17:51:14.740975 |
updated_at | 2021-10-25 14:11:25.745274 |
description | Tools to generate bindings for lib-ruby-parser |
homepage | |
repository | https://github.com/lib-ruby-parser/bindings |
max_upload_size | |
id | 441303 |
size | 64,740 |
This crate contains shared scripts to build bindings to lib-ruby-parser
.
use lib_ruby_parser_bindings::{generate, Options};
let options = Options {
pre_code: "#include \"stubs.h\"",
fn_attributes: "__attribute__((always_inline))",
..Default::default()
};
let contents = generate(&options);
std::fs::write("codegen/bindings.h", contents).unwrap();