Backend capabilities

Installed-backend checks and the required Rust symbol groups.

rustscenic.backend

Rust backend capability checks for installed RustScenic packages.

REQUIRED_RUST_BACKEND_SYMBOLS module-attribute

REQUIRED_RUST_BACKEND_SYMBOLS: dict[str, list[str]]

missing_backend_symbols

missing_backend_symbols(
    extension: Any, required: dict[str, list[str]] = REQUIRED_RUST_BACKEND_SYMBOLS
) -> list[str]

Return stage.symbol entries missing from a RustScenic extension.

Parameters:

Name Type Description Default
extension Any

Extension module or module-like object whose attributes are checked.

required
required dict[str, list[str]]

Stage names mapped to the backend symbol names each stage requires.

REQUIRED_RUST_BACKEND_SYMBOLS

Returns:

Type Description
list[str]

Missing attributes, qualified by the stage that requires them.

backend_capabilities

backend_capabilities() -> dict[str, Any]

Record Rust extension symbols required by the benchmarked pipeline.

Returns:

Type Description
dict[str, Any]

ok, extension_error, required_symbols and missing_symbols describing the installed extension.