Cargo Features
[dependencies]
cubecl-common = { version = "0.3.0", default-features = false, features = ["std"] }
- default = std
-
The
std
feature is set by default whenevercubecl-common
is added without
somewhere in the dependency tree.default-features = false - std default = futures-lite
-
rand:
Option (enabled by default): without "std" rand uses libcore; this option enables functionality expected to be available on a standard platform.
Affects
benchmark::Benchmark.run_one_full
,benchmark::Benchmark.run_one_device_only
,benchmark::run_benchmark
,rand::get_seeded_rng
,rand::gen_random
…
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.
- futures-lite std
-
Enables futures-lite
Only activate futures for std env