Cargo Features

[dependencies]
cubecl-common = { version = "0.10.0-pre.1", default-features = false, features = ["std", "cache", "compilation-cache", "fp4", "fp8", "hash", "serde", "shared-bytes", "tracing"] }
default = std

The std feature is set by default whenever cubecl-common is added without default-features = false somewhere in the dependency tree.

std default cache? = backtrace, futures-lite, parking_lot

Enables std and thread_rng of rand ^0.9.2, std of optional serde_json

Affects benchmark::Benchmark.profile, benchmark::Benchmark.profile_full, benchmark::run_benchmark, rand::get_seeded_rng, rand::gen_random

cache compilation-cache? = dirs, sanitize-filename, serde_json, std

Affects cubecl-common::cache

compilation-cache = bincode, cache

Affects cubecl-common::compilation_cache

fp4 = float4
fp8 = float8
hash = xxhash-rust

Affects cubecl-common::hash

serde = serde_bytes

Affects cubecl-common::bytes

shared-bytes

Enables bytes

tracing

Enables tracing

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

float4 fp4?
float8 fp8?
bincode compilation-cache?

Enables bincode ^2.0.1

Cache

dirs cache?
sanitize-filename cache?
serde_bytes serde?
serde_json cache?
xxhash-rust hash?

Enables xxhash-rust

Hash

futures-lite std
backtrace std
parking_lot std