Skip to main content

load_tool_labels

Function load_tool_labels 

Source
pub fn load_tool_labels(
    car_dir: impl AsRef<Path>,
) -> Result<ToolLabelConfig, FlowLoadError>
Expand description

Load tool labels for a project, merging .car/tool-labels.json with the built-in defaults.

car_dir is the project’s .car directory; this reads car_dir/tool-labels.json if present. Built-in labels are the base; project labels can add new tools or strengthen built-ins, but cannot weaken built-in sinks, capabilities, taint sources, trust labels, or enforcement defaults. A missing file is not an error (returns builtins + default policies); a malformed file is an error.