There really should be a #[cfg(debug)]
currently you can define something like #[cfg(feature= "debug")]
but you than have to manually add --features debug
to your cargo build
.
On the other hand, I can see why you would want an explicit call.
edit: hihi, I misjudged the age of this thread, reading "Apr'15" I though this was only 3 days old