Cargo Features
[dependencies]
secmem-alloc = { version = "0.4.0", default-features = false, features = ["std", "nightly_allocator_api", "nightly_core_intrinsics", "nightly", "dev"] }
- default = std
-
The
std
feature is set by default wheneversecmem-alloc
is added without
somewhere in the dependency tree.default-features = false - std default dev?
-
Enables std of allocator-api2 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())]. - nightly_allocator_api nightly?
-
Enables nightly of allocator-api2
- nightly_core_intrinsics nightly?
- nightly = nightly_allocator_api, nightly_core_intrinsics
- dev = std
-
required features to run tests; additional features enable more tests