sameboy_sys/lib.rs
1#![no_std]
2
3// we don't want to change anything with the naming
4#![allow(non_camel_case_types)]
5#![allow(non_snake_case)]
6#![allow(non_upper_case_globals)]
7
8// can't really do anything about bindgen's output
9#![allow(unnecessary_transmutes)]
10#![allow(unsafe_op_in_unsafe_fn)]
11
12#[cfg(feature = "bindgen")]
13include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
14
15#[cfg(not(feature = "bindgen"))]
16include!("bindings_pregenerated.rs");
17
18/// The SameBoy core's version
19pub const GB_VERSION: &str = env!("GB_VERSION");