Function shadow_rs::is_debug[][src]

pub fn is_debug() -> bool
Expand description

Get current project build mode.

It’s very useful. Debug mode is usually used for debugging information. For example, log printing, environment variable switch.

The default value is true.

If we compile with cargo build --release. It’s return value is false.