bb-ops 0.3.3

Canonical concrete components for the bytesandbrains framework — syscalls, wire transport, backends, protocols, role implementations.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Concrete backend implementations. Each backend (cpu, cuda, …)
//! is one self-contained unit under `bb_ops::backends::<name>`.

#[cfg(feature = "cpu-backend")]
pub mod cpu;

/// Anchor the CPU backend's symbols + inventory submission against
/// linker DCE.
#[cfg(feature = "cpu-backend")]
pub fn link_force() {
    use std::hint::black_box;
    black_box(std::any::TypeId::of::<cpu::CpuBackend>());
    black_box(cpu::CpuBackend::new());
}