Skip to main content

Module backend_stub

Module backend_stub 

Source
Expand description

Macro for generating unavailable backend stubs.

When a backend feature (e.g., cuda, wgpu, metal) is disabled, the corresponding crate still needs to expose a stub Runtime type that implements RingKernelRuntime but returns errors for all operations.

This macro eliminates the ~50 lines of identical boilerplate per backend.