Cargo Features

[dependencies]
rust-gpu-tools = { version = "0.7.2", default-features = false, features = ["opencl", "cuda"] }
default = cuda, opencl

These default features are set whenever rust-gpu-tools is added without default-features = false somewhere in the dependency tree.

opencl default = opencl3

Affects rust-gpu-tools::opencl

cuda default = rustacuda

Affects rust-gpu-tools::cuda

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.

opencl3 opencl
rustacuda cuda

Enables fil-rustacuda