### lib-ruby-parser-bindings
[](https://github.com/lib-ruby-parser/bindings/actions?query=workflow%3Atest)
[](https://github.com/rust-secure-code/safety-dance/)
[](https://crates.io/crates/lib-ruby-parser-bindings)
[](https://opensource.org/licenses/mit-license.php)
[](https://deps.rs/repo/github/lib-ruby-parser/bindings)
[](https://docs.rs/lib-ruby-parser-bindings)
This crate contains shared scripts to build bindings to `lib-ruby-parser`.
## Examples
```rust
use lib_ruby_parser_bindings::{generate, Options};
let options = Options {
pre_code: String::from("#include \"stubs.h\""),
fn_attributes: String::from("__attribute__((always_inline))"),
..Default::default()
};
let contents = generate(&options);
std::fs::write("codegen/bindings.h", contents).unwrap();
```