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_traitsmodule for details.Enables num-traits
- defmt-03
-
Support for the
defmtcrateEnables 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-traitsfeature instead, and importrgb::num_traits::* - as-bytes default = bytemuck
-
Deprecated: use
bytemuckfeature instead, and usergb::bytemuck::*Affects
pixel::ComponentBytes… - std
-
Enable for
cast_vec(). Disable for no-std support.Enables extern_crate_alloc of optional bytemuck