prismatica 0.2.0

308 scientific colormaps 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 = "prismatica"
version = "0.2.0"
build = false
exclude = [
    "data/",
    "xtask/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "308 scientific colormaps as compile-time Rust constants"
documentation = "https://docs.rs/prismatica"
readme = "README.md"
keywords = [
    "colormap",
    "scientific",
    "visualization",
    "perceptual",
    "data-viz",
]
categories = [
    "no-std",
    "science",
    "visualization",
]
license = "GPL-3.0-only"
repository = "https://github.com/resonant-jovian/prismatica"

[features]
all = [
    "matplotlib",
    "crameri",
    "cet",
    "cmocean",
    "colorbrewer",
    "cmasher",
    "ncar",
    "cartocolors",
    "moreland",
    "d3",
]
alloc = []
cartocolors = []
cet = []
cmasher = []
cmocean = []
colorbrewer = []
core = [
    "matplotlib",
    "crameri",
]
crameri = []
d3 = []
default = [
    "std",
    "core",
]
egui-integration = ["dep:egui"]
image-integration = ["dep:image"]
matplotlib = []
moreland = []
ncar = []
plotters-integration = ["dep:plotters"]
serde-support = ["dep:serde"]
std = ["alloc"]

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

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

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

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

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

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

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

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

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

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

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

[dependencies.image]
version = "0.25.10"
optional = true
default-features = false

[dependencies.libm]
version = "0.2.16"

[dependencies.plotters]
version = "0.3.7"
optional = true
default-features = false

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

[dev-dependencies.image]
version = "0.25.10"
features = ["png"]

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

[dev-dependencies.plotters]
version = "0.3.7"
features = ["svg_backend"]

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

[lints.clippy]
unwrap_used = "deny"

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

[lints.rust]
unsafe_code = "forbid"