Cargo Features

[dependencies]
cubecl-common = { version = "0.5.0", default-features = false, features = ["std", "serde", "cache"] }
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? = futures-lite

Enables std and thread_rng of rand, std of optional serde_json

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

serde
cache = dirs, hashbrown, sanitize-filename, serde_json, std

Affects cubecl-common::cache

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.

hashbrown cache?

Enables hashbrown ^0.14.5

Cache

serde_json cache?
dirs cache?

Enables dirs ^5.0.1

sanitize-filename cache?

Enables sanitize-filename ^0.5

futures-lite std