Skip to main content

is_production

Function is_production 

Source
pub fn is_production() -> bool
Expand description

Whether the current app environment is production-like.

True when get_app_env resolves (case-insensitively) to production or prod. Used by config validate(is_production) methods to reject insecure-by-design settings (e.g. TLS skip_verify, plaintext disk caches) outside of dev/test.