metrale_core/lib.rs
1// SPDX-License-Identifier: MIT OR Apache-2.0
2
3//! 2026-09-25: Shared foundation types and host-side helpers for the engine crates, one module each (listed below).
4//!
5//! Owner: metrale-core.
6//! Invariants:
7//! - The `cuda` feature gates only `device::MetraleDevice` and the
8//! `error::MetraleError::CudaDriver` variant; the crate builds without it.
9
10#![deny(warnings)]
11#![deny(clippy::all)]
12
13pub mod arch;
14pub mod compute;
15pub mod dtype;
16pub mod error;
17pub mod fault;
18pub mod mxfp4_e8m0;
19pub mod numeric;
20pub mod safetensors;
21pub mod scope;
22pub mod target;
23pub mod tensor;
24
25// 2026-09-25: `device` is not feature-gated: its `sm121` constants compile on
26// every backend, and only the `MetraleDevice` wrapper inside it needs `cuda`.
27pub mod device;