rgb 0.8.36

`struct RGB/RGBA/etc.` for sharing pixels between crates + convenience methods for color manipulation. Allows no-copy high-level interoperability. Also adds common convenience methods and implements standard Rust traits to make `RGB`/`RGBA` pixels and slices first-class Rust objects.
Documentation
[package]
name = "rgb"
version = "0.8.36"
authors = ["Kornel LesiƄski <kornel@geekhood.net>"]
include = ["src/**/*", "Cargo.toml", "README.md", "examples/*.rs", "LICENSE"]
description = "`struct RGB/RGBA/etc.` for sharing pixels between crates + convenience methods for color manipulation.\nAllows no-copy high-level interoperability. Also adds common convenience methods and implements standard Rust traits to make `RGB`/`RGBA` pixels and slices first-class Rust objects."
documentation = "https://docs.rs/rgb"
repository = "https://github.com/kornelski/rust-rgb"
homepage = "https://lib.rs/crates/rgb"
readme = "README.md"
keywords = ["rgb", "rgba", "bgra", "pixel", "color"]
license = "MIT"
categories = ["graphics", "rust-patterns", "multimedia::images"]
edition = "2018"

[features]
default = ["as-bytes"]
# safe as_bytes() casts require a marker trait for non-padded, non-pointery types.
as-bytes = ["bytemuck"]
argb = []
grb = []

[badges]
travis-ci = { repository = "kornelski/rust-rgb" }
maintenance = { status = "actively-developed" }

[dependencies]
serde = { version = "1.0.130", optional = true, default-features = false, features = ["derive"] }
bytemuck = { version = "1.7.2", optional = true }

[dev-dependencies]
serde_json = "1.0.68"

[[example]]
name = "serde"
required-features = ["serde"]

[[example]]
name = "example"
required-features = ["as-bytes"]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
features = [ "argb", "serde", "as-bytes" ]