[package]
edition = "2024"
rust-version = "1.94.0"
name = "ph-color"
version = "0.1.1"
authors = ["Steven Giacomelli <steve@giacomelli.ca>"]
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fixed-point no_std color math for embedded targets: conversion, transfer functions, matrices, gain, and interpolation"
documentation = "https://docs.rs/ph-color"
readme = "README.md"
keywords = [
"no-std",
"embedded",
"color",
"fixed-point",
"srgb",
]
categories = [
"embedded",
"no-std",
"mathematics",
]
license = "MIT"
repository = "https://github.com/photon-circus/ph-color"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
[features]
default = []
f32 = []
oklab = []
[lib]
name = "ph_color"
path = "src/lib.rs"
[[example]]
name = "hub75"
path = "examples/hub75.rs"
[[example]]
name = "oklab_sketch"
path = "examples/oklab_sketch.rs"
required-features = ["oklab"]
[[example]]
name = "uv_flood"
path = "examples/uv_flood.rs"
[[test]]
name = "f32_orthogonality"
path = "tests/f32_orthogonality.rs"
required-features = ["f32"]
[[test]]
name = "golden"
path = "tests/golden.rs"
[[test]]
name = "trybuild"
path = "tests/trybuild.rs"
[dev-dependencies.trybuild]
version = "1.0"
[lints.clippy]
arithmetic_side_effects = "deny"
indexing_slicing = "deny"
[lints.rust]
missing_docs = "deny"
unsafe_code = "forbid"