Cargo Features

[dependencies]
palette = { version = "0.7.4", 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 default-features = false somewhere in the dependency tree.

std default serializing? = alloc

Enables std of optional approx

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.

approx default
libm implicit feature

Enables libm

libm:

libm in pure Rust

bytemuck implicit feature

Enables bytemuck

bytemuck:

A crate for mucking around with piles of bytes

wide implicit feature

Enables wide

wide:

A crate to help you go wide

phf named_from_str
rand random?
serde serializing?