| 1 |
workspace = { members = ["app", "fuzz"] } |
| 2 |
|
| 3 |
[package] |
| 4 |
name = "moxcms" |
| 5 |
version = "0.8.1" |
| 6 |
edition = "2024" |
| 7 |
description = "Simple Color Management in Rust" |
| 8 |
readme = "./README.md" |
| 9 |
keywords = ["icc", "cms", "color", "cmyk"] |
| 10 |
license = "BSD-3-Clause OR Apache-2.0" |
| 11 |
authors = ["Radzivon Bartoshyk"] |
| 12 |
documentation = "https://github.com/awxkee/moxcms" |
| 13 |
categories = ["multimedia::images"] |
| 14 |
homepage = "https://github.com/awxkee/moxcms" |
| 15 |
repository = "https://github.com/awxkee/moxcms.git" |
| 16 |
exclude = ["*.jpg", "../../assets/*", "*.png", "*.icc", "./assets/*"] |
| 17 |
rust-version = "1.85.0" |
| 18 |
|
| 19 |
[dependencies] |
| 20 |
num-traits = "0.2" |
| 21 |
pxfm = "^0.1.1" |
| 22 |
|
| 23 |
[dev-dependencies] |
| 24 |
rand = "0.10.0" |
| 25 |
|
| 26 |
[features] |
| 27 |
# If no unsafe intrinsics active then `forbid(unsafe)` will be used. |
| 28 |
default = ["avx_shaper_paths", "sse_shaper_paths", "neon_shaper_paths", "avx_shaper_fixed_point_paths", "avx_luts", "sse_shaper_fixed_point_paths", "sse_luts", "neon_shaper_fixed_point_paths", "neon_luts", "lut"] |
| 29 |
|
| 30 |
# Enables AVX-512 acceleration where possible. This will work only from 1.89 on stable. |
| 31 |
avx512 = [] |
| 32 |
# Enables optimize matrix shaper AVX512 paths where all TRC are the same. |
| 33 |
avx512_shaper_optimized_paths = ["avx512"] |
| 34 |
# Enables optimize matrix shaper AVX512 fixed point paths. |
| 35 |
avx512_shaper_fixed_point_paths = ["avx512"] |
| 36 |
|
| 37 |
# Enables AVX2 acceleration where possible |
| 38 |
avx = [] |
| 39 |
# Enables common matrix shaper AVX paths. |
| 40 |
avx_shaper_paths = ["avx"] |
| 41 |
# Enables optimize matrix shaper AVX paths where all TRC are the same. |
| 42 |
avx_shaper_optimized_paths = ["avx"] |
| 43 |
# Enables optimize matrix shaper AVX fixed point paths. |
| 44 |
avx_shaper_fixed_point_paths = ["avx"] |
| 45 |
# Enables AVX optimized LUT paths. This includes fixes point paths and commons paths. |
| 46 |
avx_luts = ["lut", "avx"] |
| 47 |
|
| 48 |
# Enables SSE4.1 acceleration where possible. |
| 49 |
sse = [] |
| 50 |
# Enables common matrix shaper SSE paths. |
| 51 |
sse_shaper_paths = ["sse"] |
| 52 |
# Enables optimize matrix shaper SSE paths where all TRC are the same |
| 53 |
sse_shaper_optimized_paths = ["sse"] |
| 54 |
# Enables optimize matrix shaper SSE fixed point paths. |
| 55 |
sse_shaper_fixed_point_paths = ["sse"] |
| 56 |
# Enables SSE optimized LUT paths. This includes fixes point paths and commons paths. |
| 57 |
sse_luts = ["lut", "sse"] |
| 58 |
|
| 59 |
# Enables NEON intrinsics where possible |
| 60 |
neon = [] |
| 61 |
# Enables common matrix shaper NEON paths |
| 62 |
neon_shaper_paths = ["neon"] |
| 63 |
# Enables optimize matrix shaper NEON paths where all TRC are the same. |
| 64 |
neon_shaper_optimized_paths = ["neon"] |
| 65 |
# Enables optimize matrix shaper NEON fixed point paths. |
| 66 |
neon_shaper_fixed_point_paths = ["neon"] |
| 67 |
# Enables NEON optimized LUT paths. This includes fixes point paths and commons paths. |
| 68 |
neon_luts = ["lut", "neon"] |
| 69 |
|
| 70 |
# Allows configuring interpolation methods and LUT weights precision. |
| 71 |
# Disabled by default to prevent binary bloat. |
| 72 |
options = ["lut"] |
| 73 |
# All LUT are gated by this feature. This is basic feature to work with CMYKs profiles. |
| 74 |
lut = [] |
| 75 |
# This feature is required for one who wants to work with more than 4 channels ICC profiles, except CMYKA. |
| 76 |
# This is required as for handling unusual 1-2 channels LUTs. |
| 77 |
# Optimizations in this library heavily depends on curves quantizing and fuzing many curves into one using interpolation. |
| 78 |
# That places a requirement that curves in profile should be monothonic and continious, and do not have long |
| 79 |
# degenerations at boundaries. Many CMYK have curves that do not fall under those requiremenent, so if accurate |
| 80 |
# color reproduction is neccessary for broad amount of LUT profiles, this feature is mandatory. |
| 81 |
any_to_any = ["lut"] |
| 82 |
# This allows extended range on `f32`/`f64` to work with HDR/WideGamut if neccessary |
| 83 |
extended_range = [] |
| 84 |
# Enables in-place transforms. |
| 85 |
in_place = [] |
| 86 |
|
| 87 |
[package.metadata.docs.rs] |
| 88 |
# To build locally: |
| 89 |
# RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps --open --manifest-path ./Cargo.toml |
| 90 |
all-features = true |
| 91 |
rustdoc-args = ["--cfg", "docsrs"] |
| 92 |
|
| 93 |
[profile.profiling] |
| 94 |
inherits = "release" |
| 95 |
debug = true |