1[package]
2name = "rgb"
3version = "0.8.37"
4authors = ["Kornel LesiƄski <kornel@geekhood.net>"]
5include = ["src/**/*", "Cargo.toml", "README.md", "examples/*.rs", "LICENSE"]
6description = "`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."
7documentation = "https://docs.rs/rgb"
8repository = "https://github.com/kornelski/rust-rgb"
9homepage = "https://lib.rs/crates/rgb"
10readme = "README.md"
11keywords = ["rgb", "rgba", "bgra", "pixel", "color"]
12license = "MIT"
13categories = ["graphics", "rust-patterns", "multimedia::images"]
14edition = "2018"
15
16[features]
17default = ["as-bytes"]
18# safe as_bytes() casts require a marker trait for non-padded, non-pointery types.
19as-bytes = ["bytemuck"]
20argb = []
21grb = []
22
23[badges]
24travis-ci = { repository = "kornelski/rust-rgb" }
25maintenance = { status = "actively-developed" }
26
27[dependencies]
28serde = { version = "1.0.130", optional = true, default-features = false, features = ["derive"] }
29bytemuck = { version = "1.7.2", optional = true }
30
31[dev-dependencies]
32serde_json = "1.0.68"
33
34[[example]]
35name = "serde"
36required-features = ["serde"]
37
38[[example]]
39name = "example"
40required-features = ["as-bytes"]
41
42[package.metadata.docs.rs]
43targets = ["x86_64-unknown-linux-gnu"]
44features = [ "argb", "serde", "as-bytes" ]
45rustdoc-args = ["--generate-link-to-definition"]
46