profile

Function profile 

Source
pub fn profile() -> String
Expand description

release for release builds, debug for other builds.

This is determined based on if the profile inherits from the dev or release profile. Using this function is not recommended. Using other functions like opt_level provides a more correct view of the actual settings being used.