pub fn validate_call_export(
surface: &ApiSurface,
module_path: &str,
function_name: &str,
) -> ExportValidationExpand description
Validate that a (module_path, function_name) pair from alef.toml resolves
to a function whose rust_path matches "{module_path}::{function_name}".
This catches two bug classes:
- C1 – the declared
moduledoes not match the actual export path (e.g., the instead ofsample_core/render_pageexamples inherited from consumers. function is defined atsample_core::rendering::render_pagebutalef.tomlusesmodule = "sample_core", andrender_pageis NOT re-exported at the crate root). - C2 – multiple definitions exist; the one with the wrong
rust_pathwas kept by the dedup pass, causing the wrong signature to be used.
Pass module_path = "sample_core" and function_name = "render_page" to check
that sample_core::render_page exists in the surface.