Cargo Features
[dependencies]
palette = { version = "0.7.6", default-features = false, features = ["std", "alloc", "named_from_str", "named", "random", "serializing", "find-crate", "approx", "libm", "bytemuck", "wide"] }
- default = approx, named_from_str, std
-
These default features are set whenever
palette
is added without
somewhere in the dependency tree.default-features = false - std default serializing? = alloc
- alloc std
-
Affects
array::into_array_box
,array::from_array_box
,array::into_array_slice_box
,array::into_component_slice_box
,array::from_array_slice_box
,array::from_component_slice_box
,array::try_from_component_slice_box
,array::into_array_vec
,array::into_component_vec
,array::from_array_vec
,array::from_component_vec
,array::try_from_component_vec
,array::map_vec_in_place
,array::map_slice_box_in_place
,array::BoxedSliceCastError
,array::VecCastError
,uint::into_uint_slice_box
,uint::from_uint_slice_box
,uint::into_uint_vec
,uint::from_uint_vec
… - named_from_str default = named, phf
-
Affects
named::from_str
… - named named_from_str
-
Affects
named::build_colors
,palette::named
… - random = rand
-
Affects
alpha::UniformAlpha
… - serializing = serde, std
-
Affects
palette::serde
… - find-crate
-
Enables find-crate of palette_derive
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.