chromata 0.2.0

1000+ editor color themes as compile-time Rust constants
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "chromata"
version = "0.2.0"
build = false
exclude = [
    "data/",
    "xtask/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "1000+ editor color themes as compile-time Rust constants"
documentation = "https://docs.rs/chromata"
readme = "README.md"
keywords = [
    "color",
    "theme",
    "colorscheme",
    "syntax",
    "palette",
]
categories = [
    "no-std",
    "value-formatting",
    "visualization",
]
license = "GPL-3.0-only"
repository = "https://github.com/resonant-jovian/chromata"

[features]
all = [
    "base16",
    "base24",
    "vim",
    "emacs",
]
base16 = []
base24 = []
crossterm-integration = ["dep:crossterm"]
default = ["popular"]
egui-integration = ["dep:egui"]
emacs = []
iced-integration = ["dep:iced_core"]
popular = []
ratatui-integration = ["dep:ratatui"]
serde-support = ["dep:serde"]
vim = []

[lib]
name = "chromata"
path = "src/lib.rs"

[[example]]
name = "egui_gallery"
path = "examples/egui_gallery.rs"

[[example]]
name = "export_css"
path = "examples/export_css.rs"

[[example]]
name = "find_theme"
path = "examples/find_theme.rs"

[[example]]
name = "list_all"
path = "examples/list_all.rs"

[[example]]
name = "preview_ansi"
path = "examples/preview_ansi.rs"

[[example]]
name = "ratatui_demo"
path = "examples/ratatui_demo.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[[test]]
name = "property"
path = "tests/property.rs"

[[test]]
name = "snapshots"
path = "tests/snapshots.rs"

[dependencies.crossterm]
version = "0.29.0"
optional = true

[dependencies.egui]
version = "0.34.0"
optional = true
default-features = false

[dependencies.iced_core]
version = "0.14.0"
optional = true

[dependencies.libm]
version = "0.2.16"

[dependencies.ratatui]
version = "0.30.0"
optional = true
default-features = false

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true

[dev-dependencies.insta]
version = "1"

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.serde_json]
version = "1"

[lints.clippy]
unwrap_used = "deny"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "forbid"