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