ph-color-bake 0.1.0

Host-side generator for auditable ph-color matrices, fixed-point LUTs, and golden vectors
Documentation
# ph-color-bake

Host baker for `ph-color`.

[![crates.io](https://img.shields.io/crates/v/ph-color-bake.svg)](https://crates.io/crates/ph-color-bake)
[![docs.rs](https://docs.rs/ph-color-bake/badge.svg)](https://docs.rs/ph-color-bake)

> [!NOTE]
> **Lifecycle:** Active
> **Distribution:** Version `0.1.0` on
> [crates.io]https://crates.io/crates/ph-color-bake, with API documentation
> on [docs.rs]https://docs.rs/ph-color-bake.
> **Model conformance:** N/A
> **Physical evidence:** N/A

This package runs on the host with `std` and `f64`. It derives gamut matrices
and transfer LUTs and emits Rust `const` tables with `MAX_ERR_LSB`. It is
never linked into a target firmware build.

```toml
[dependencies]
ph-color-bake = "0.1"
```

MSRV is Rust 1.94.0, edition 2024. This package requires `std` and uses `f64`;
it is host tooling and must not be linked into target firmware.

The binary emits `Matrix3` and `InterpLut` `const` source on `--emit-rust`,
including sRGB OETF/EOTF tables. `--emit-oklab-module` emits the checked-in
Oklab matrix and cube-root LUT module, while `cargo xtask generate` writes that
artifact through the repository workflow. `--emit-golden` writes frozen CSV
vectors under `crates/color/tests/golden/`.

```sh
ph-color-bake --emit-rust
ph-color-bake --emit-oklab-module
```

## License

MIT