| 1 | [package] |
| 2 | name = "codewhale-palette" |
| 3 | version.workspace = true |
| 4 | edition.workspace = true |
| 5 | rust-version.workspace = true |
| 6 | license.workspace = true |
| 7 | repository.workspace = true |
| 8 | description = "Colour tokens, themes, and contrast math for Codewhale's terminal UI." |
| 9 | |
| 10 | [lints] |
| 11 | workspace = true |
| 12 | |
| 13 | # `ratatui` (default) enables the `Color` roles, themes, adaptation, contrast |
| 14 | # math and terminal detection. Without it the crate is the renderer-free |
| 15 | # core (RGB tuples, ThemeId, theme and hex normalizers) that the headless |
| 16 | # runtime links: `codewhale-palette = { default-features = false }`. |
| 17 | [features] |
| 18 | default = ["ratatui"] |
| 19 | ratatui = ["dep:ratatui"] |
| 20 | |
| 21 | [dependencies] |
| 22 | codewhale-config = { path = "../config", version = "0.10.1" } |
| 23 | ratatui = { version = "=0.30.2", features = ["unstable-rendered-line-info"], optional = true } |
| 24 | serde.workspace = true |
| 25 | serde_json = { workspace = true, features = ["preserve_order", "raw_value"] } |
| 26 | |
| 27 | [target.'cfg(unix)'.dependencies] |
| 28 | libc = { workspace = true } |
| 29 | |
| 30 | [dev-dependencies] |
| 31 | tempfile.workspace = true |
| 32 |