Skip to main content

scan_workspace_with_worker_executable

Function scan_workspace_with_worker_executable 

Source
pub fn scan_workspace_with_worker_executable(
    config_path: &Path,
    database_path: &Path,
    overrides: &ScanOverrides,
    worker_executable: &Path,
) -> Result<ScanSummary, ApplicationError>
Expand description

Scans through an explicitly selected compatible worker executable.

This entry point lets an embedding application re-execute its own binary after dispatching __worker-v1 to [run_worker_from_stdio], so using the library does not require Cargo to have built the csgraph binary target next to the host executable.

ยงErrors

Returns ApplicationError when the worker cannot start or the supervised scan fails.