Cargo Features

[dependencies]
rgb = { version = "0.8.91-alpha.3", default-features = false, features = ["num-traits", "defmt-03", "serde", "bytemuck", "grb", "checked_fns", "as-bytes", "std"] }
default = argb, as-bytes, grb

Since all pixel formats are enabled by default, because it has negligible impact on compilation time

num-traits

Implements some of the traits, see rgb::num_traits module for details.

Enables num-traits

defmt-03

Support for the defmt crate

Enables defmt ^0.3.8

serde

Enables serde

bytemuck as-bytes

Enables bytemuck

these give better code

argb grb default

Deprecated: it's always enabled anyway

checked_fns

Deprecated: use num-traits feature instead, and import rgb::num_traits::*

as-bytes default = bytemuck

Deprecated: use bytemuck feature instead, and use rgb::bytemuck::*

Affects pixel::ComponentBytes

std

Enable for cast_vec(). Disable for no-std support.

Enables extern_crate_alloc of optional bytemuck