Cargo Features

[dependencies]
secmem-alloc = { version = "0.2.0", default-features = false, features = ["std", "nightly_allocator_api", "nightly_core_intrinsics", "nightly_stdsimd", "nightly_strict_provenance", "nightly", "dev"] }
default = std

The std feature is set by default whenever secmem-alloc is added without default-features = false somewhere in the dependency tree.

std default dev? = thiserror

Enables std of winapi

nightly_allocator_api dev? nightly?

Affects secmem-alloc::allocator_api

nightly_core_intrinsics nightly?

Affects zeroize::volatile_memset, zeroize::VolatileMemsetZeroizer

nightly_stdsimd nightly?

even though stabilised, still necessary for avx512

Affects asm_x86_64::x86_64_simd64_zeroize_align64_block64

nightly_strict_provenance nightly?

enables strict provenance lints and uses strict provenance methods from std instead of those from sptr (for inherent methods only)

nightly = nightly_allocator_api, nightly_core_intrinsics, nightly_stdsimd, nightly_strict_provenance
dev = nightly_allocator_api, std

required features to run tests; additional features enable more tests

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.

thiserror std