switch gecko_bindings over to the gecko_debug feature

...so that they use the correct Gecko structs regardless of whether Rust
code is being compiled with debug assertions or not.
This commit is contained in:
Nathan Froyd 2017-04-20 17:04:58 -04:00
parent 93fa0ae1e3
commit 7c6fda8ea9
7 changed files with 16 additions and 8 deletions

View file

@ -16,7 +16,7 @@ pub mod bindings {
#[allow(dead_code, improper_ctypes, non_camel_case_types, non_snake_case, non_upper_case_globals, missing_docs)]
pub mod structs {
cfg_if! {
if #[cfg(debug_assertions)] {
if #[cfg(feature = "gecko_debug")] {
include!(concat!(env!("OUT_DIR"), "/gecko/structs_debug.rs"));
} else {
include!(concat!(env!("OUT_DIR"), "/gecko/structs_release.rs"));