Cargo Features
[dependencies]
blueprint-std = { version = "0.1.0-alpha.1", default-features = false, features = ["std", "parallel", "print-trace", "getrandom"] }
- default = std
-
The
std
feature is set by default wheneverblueprint-std
is added without
somewhere in the dependency tree.default-features = false - std default parallel? print-trace? = getrandom
-
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())]. - parallel = std
-
Enables rayon
- print-trace = std
-
Affects
perf_trace::inner
… - getrandom std
-
Enables std of rand ^0.8.5
rand:
Option (enabled by default): without "std" rand uses libcore; this option enables functionality expected to be available on a standard platform.