Cargo Features
[dependencies]
scratchpad = { version = "1.3.1", default-features = false, features = ["std", "alloc", "unstable"] }
- default = std
-
The
std
feature is set by default wheneverscratchpad
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables
std
library use. This is required forBox
andVec
support on stable toolchains prior to Rust 1.36.0.Affects
utility::uninitialized_boxed_slice
,utility::uninitialized_boxed_slice_for_bytes
,utility::uninitialized_boxed_slice_for_markers
… - alloc
-
Enables stable
alloc
library use forBox
andVec
support. Requires Rust 1.36.0 or later. Ignored ifstd
is enabled.Affects
utility::uninitialized_boxed_slice
,utility::uninitialized_boxed_slice_for_bytes
,utility::uninitialized_boxed_slice_for_markers
… - unstable
-
Enables unstable features (requires a nightly toolchain).
Affects
utility::uninitialized_boxed_slice
,utility::uninitialized_boxed_slice_for_bytes
,utility::uninitialized_boxed_slice_for_markers
…