I'm building a small tool to detect code injection in Unity assemblies, and I'd like to use compiler directives for debug and release builds. Something like;
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