Add #[cfg(debug)] flag to rust suite compilation. Closes #3068
auto merge of #6326 : z0w0/rust/cfg-debug, r=yichoi