profile

Function profile 

Source
pub fn profile() -> String
Expand description

The selected build profile, e.g. release, debug, or a custom profile as defined in Cargo.toml.

Corresponds to the DEBUG environment variable set by Cargo when when compiling build.rs.