mirror of
https://github.com/storytold/craft-libs.git
synced 2026-12-01 02:36:54 +01:00
The comparisons with craft-cms, craft-mesh and craft-psd and their dev-dependencies are removed. The tests of the pair against IEC 61966-2-1 move to tests/it/srgb.rs, linked through tests/it/main.rs.
39 lines
1.1 KiB
TOML
39 lines
1.1 KiB
TOML
[package]
|
|
name = "craft-texture"
|
|
description = "Bounded linear float image planes and texture sampling"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
|
|
[features]
|
|
default = []
|
|
dds = ["dep:dds", "dep:bytemuck"]
|
|
parallel = ["dep:rayon"]
|
|
png = ["dep:craft-image-codecs"]
|
|
tiff = ["dep:craft-image-codecs"]
|
|
hdr = ["dep:craft-hdr"]
|
|
exr = ["dep:craft-exr", "craft-exr/decode"]
|
|
decode = ["png", "tiff", "hdr", "exr"]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
craft-exr = { workspace = true, optional = true }
|
|
craft-hdr = { workspace = true, optional = true }
|
|
craft-image-codecs = { workspace = true, optional = true }
|
|
rayon = { workspace = true, optional = true }
|
|
thiserror = { workspace = true }
|
|
|
|
# Same decoder used by MaterialCraft; no parallel backend enabled.
|
|
dds = { version = "0.2.0", default-features = false, optional = true }
|
|
bytemuck = { workspace = true, optional = true }
|
|
|
|
[dev-dependencies]
|
|
png-encoder = { package = "png", version = "0.18" }
|
|
half = "2"
|
|
dds = { version = "0.2.0", default-features = false }
|
|
bytemuck = { workspace = true }
|