Skip to main content

profile_contracts

Function profile_contracts 

Source
pub fn profile_contracts(
    profiles: &BTreeMap<String, ProfileConfig>,
    profile: CliProfile,
) -> bool
Expand description

#3107: whether a build under profile carries the contract guard, the one rule every verb that builds shares: [profile.<name>] contracts, else the profile’s default (dev on, release off). bynk build also takes a profile from its flag; test is always dev, deploy always release.