2 unstable releases
0.2.0 | Apr 11, 2019 |
---|---|
0.1.0 | Apr 11, 2019 |
#8 in #pros
4KB
Rust Pros Bindgen
Generate PROS bindings to rust
Requirements
- The latest stable version of rust
- gcc
- PROS
- some random header modifications
Useage
In build.rs
use pros_bindgen::bindgen;
fn main(){
bindgen();
}
In some file to import the bindings
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(dead_code)]
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
What header modifications
If you want to use it, make an issue and I'll document it.
Dependencies
~8–16MB
~205K SLoC