Skip to main content

validate_env_map

Function validate_env_map 

Source
pub fn validate_env_map<S: BuildHasher>(
    env: &HashMap<String, String, S>,
) -> Result<(), EnvValidationError>
Expand description

Validate user-provided environment variables before merging/execution.

This enforces structural safety only (name shape + size + control chars), not semantic typing for values.

ยงErrors

Returns EnvValidationError when key names, value bytes, or total map size exceed the runtime limits.