Cargo Features
[dependencies]
cubecl-reduce = { version = "0.9.0-pre.5", default-features = false, features = ["std", "export_tests"] }
- default = std
-
These default features are set whenever
cubecl-reduceis added withoutsomewhere in the dependency tree.default-features = false Enables cubecl-core =0.9.0-pre.5 and cubecl-runtime =0.9.0-pre.5
- std default
-
Enables std of cubecl-core =0.9.0-pre.5, cubecl-runtime =0.9.0-pre.5, and thiserror
thiserror:
Std feature enables support for formatting std::path::{Path, PathBuf}
conveniently in an error message.
#[derive(Error, Debug)]
#[error("failed to create configuration file {path}")]
pub struct MyError {
pub path: PathBuf,
pub source: std::io::Error,
}
Without std, this would need to be written #[error("... {}", path.display())]. - export_tests = pretty_assertions, rand
-
Affects
cubecl-reduce::test,cubecl-reduce::test_shuffle…
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.
- pretty_assertions export_tests?
- rand export_tests?
-
Enables rand ^0.9.2