| 1 |
[package] |
| 2 |
name = "palette" |
| 3 |
version = "0.7.6" #automatically updated |
| 4 |
authors = ["Erik Hedvall <[email protected]>"] |
| 5 |
exclude = [ |
| 6 |
"scripts/*", |
| 7 |
"examples/*", |
| 8 |
"tests/*", |
| 9 |
"regression_tests/*", |
| 10 |
"benches/*", |
| 11 |
"res/*", |
| 12 |
".travis.yml", |
| 13 |
".gitignore", |
| 14 |
"CHANGELOG.md", |
| 15 |
"CONTRIBUTING.md", |
| 16 |
"version.sh", |
| 17 |
] |
| 18 |
description = "Convert and manage colors with a focus on correctness, flexibility and ease of use." |
| 19 |
documentation = "https://docs.rs/palette/0.7.6/palette/" |
| 20 |
repository = "https://github.com/Ogeon/palette" |
| 21 |
readme = "README.md" |
| 22 |
keywords = ["color", "conversion", "linear", "pixel", "rgb"] |
| 23 |
license = "MIT OR Apache-2.0" |
| 24 |
edition = "2018" |
| 25 |
resolver = "2" |
| 26 |
categories = ["graphics", "multimedia::images", "no-std"] |
| 27 |
build = "build/main.rs" |
| 28 |
rust-version = "1.60.0" |
| 29 |
|
| 30 |
[features] |
| 31 |
default = ["named_from_str", "std", "approx"] |
| 32 |
named_from_str = ["named", "phf"] |
| 33 |
named = [] |
| 34 |
random = ["rand"] |
| 35 |
serializing = ["serde", "std"] |
| 36 |
find-crate = ["palette_derive/find-crate"] |
| 37 |
std = ["alloc", "approx?/std"] |
| 38 |
alloc = [] |
| 39 |
|
| 40 |
[lib] |
| 41 |
bench = false |
| 42 |
|
| 43 |
[dependencies] |
| 44 |
palette_derive = { version = "0.7.6", path = "../palette_derive" } |
| 45 |
fast-srgb8 = "1.0.0" |
| 46 |
approx = { version = "0.5", default-features = false, optional = true } |
| 47 |
libm = { version = "0.2.1", default-features = false, optional = true } |
| 48 |
|
| 49 |
[dependencies.phf] |
| 50 |
version = "0.11.0" |
| 51 |
optional = true |
| 52 |
default-features = false |
| 53 |
features = ["macros"] |
| 54 |
|
| 55 |
[dependencies.rand] |
| 56 |
version = "0.8" |
| 57 |
default-features = false |
| 58 |
optional = true |
| 59 |
|
| 60 |
[dependencies.serde] |
| 61 |
version = "1" |
| 62 |
features = ["serde_derive"] |
| 63 |
optional = true |
| 64 |
|
| 65 |
[dependencies.bytemuck] |
| 66 |
version = "1" |
| 67 |
optional = true |
| 68 |
|
| 69 |
[dependencies.wide] |
| 70 |
version = "0.7.3" |
| 71 |
optional = true |
| 72 |
default-features = false |
| 73 |
|
| 74 |
[dev-dependencies] |
| 75 |
serde_json = "1" |
| 76 |
ron = "=0.8.0" # Pinned due to MSRV mismatch |
| 77 |
enterpolation = "0.2.0" |
| 78 |
|
| 79 |
[dev-dependencies.image] |
| 80 |
version = "0.23.14" |
| 81 |
default-features = false |
| 82 |
features = ["png"] |
| 83 |
|
| 84 |
[dev-dependencies.rand_mt] |
| 85 |
version = "4" |
| 86 |
default-features = false |
| 87 |
features = ["rand-traits"] |
| 88 |
|
| 89 |
[package.metadata.docs.rs] |
| 90 |
all-features = true |