Cargo Features
[dependencies]
rgb = { version = "0.8.90-alpha.2", default-features = false, features = ["num-traits", "defmt-03", "serde", "bytemuck", "grb", "checked_fns", "as-bytes", "legacy"] }
- 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
crateEnables defmt
- serde
-
Enables serde
- bytemuck as-bytes
-
Enables bytemuck
Affects
rgb::bytemuck
… - argb grb default
-
Deprecated: it's always enabled anyway
- checked_fns
-
Deprecated: use
num-traits
feature instead, and importrgb::num_traits::*
- as-bytes default = bytemuck
-
Deprecated: use
bytemuck
feature instead, and usergb::bytemuck::*
Affects
pixel::ComponentBytes
… - legacy
-
Currently no-op