Skip to main content

Module export_map

Module export_map 

Source
Expand description

Cross-crate export map construction.

After scanning a dependency crate, this module extracts a summary of its authority surface: which functions (directly or transitively) exercise ambient authority. The export map is keyed by fully-qualified module path within the crate.

Structs§

CachedExportMap
Cached export map format for disk persistence.
CrateExportMap
A dependency crate’s authority surface — its functions that transitively exercise ambient authority.
ExportedAuthority
A single authority finding associated with an exported function.

Constants§

EXPORT_MAP_SCHEMA_VERSION
Current schema version for cached export maps. Bumped to 2: added extern function declaration exports.

Functions§

add_extern_exports
Adds extern function declarations from parsed files to an export map.
build_export_map
Builds an export map from a dependency crate’s scan findings.
file_to_module_path
Converts a source file path to a module path within the crate.
load_cached_export_map
Attempts to load a cached export map for a dependency crate.
save_export_map_cache
Saves an export map to the cache directory.