cubecl_common/lib.rs
1#![cfg_attr(not(feature = "std"), no_std)]
2#![warn(missing_docs)]
3
4//! # CubeCL Common Library
5//!
6//! This library contains common types used by other crates that must be shared.
7
8#[macro_use]
9extern crate derive_new;
10
11/// Rand module contains types for random number generation for non-std environments and for
12/// std environments.
13pub mod rand;
14
15/// Stub module contains types for stubs for non-std environments and for std environments.
16pub mod stub;
17
18/// Stream id related utilities.
19pub mod stream_id;
20
21/// Cache module for an efficient in-memory and persistent database.
22#[cfg(feature = "cache")]
23pub mod cache;
24
25#[cfg(feature = "cache")]
26pub(crate) mod cache_file;
27
28/// Module for benchmark timings
29pub mod benchmark;
30
31/// Module for profiling any executable part
32pub mod profile;
33
34/// Useful when you need to read async data without having to decorate each function with async
35/// notation.
36pub mod reader;
37
38/// Future utils with a compatible API for native, non-std and wasm environments.
39pub mod future;
40
41/// Various utilities to create ID's.
42extern crate alloc;
43
44/// Custom float implementations
45mod float;
46/// Common kernel types
47mod kernel;
48
49pub use float::*;
50pub use kernel::*;