Skip to main content

profile_namespace

Function profile_namespace 

Source
pub(crate) fn profile_namespace(
    profile: &str,
    profile_suffix: Option<&str>,
    variables: &BTreeMap<String, String>,
) -> String
Expand description

Compute the cache namespace for a profile configuration.

Returns a hex-encoded SHA-256 hash of the profile name, optional suffix, and variable bindings. This ensures that different profile/suffix/variable combinations use isolated SQLite databases under target/compiler/, preventing cross-contamination of cached artifacts.