-
Notifications
You must be signed in to change notification settings - Fork 8
/
Cargo.toml
81 lines (69 loc) · 2.07 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[package]
name = "lutgen"
version = "0.11.2"
documentation = "https://docs.rs/lutgen"
keywords = [
"image-processing",
"color",
"hald-clut",
"lookup-tables",
"gaussian",
]
description = "A blazingly fast interpolated LUT utility for arbitrary and popular color palettes."
edition = "2021"
license = "MIT"
authors = ["Ossian Mapes <[email protected]>"]
repository = "https://github.com/ozwaldorf/lutgen-rs"
homepage = "https://github.com/ozwaldorf/lutgen-rs"
categories = ["multimedia::images"]
[workspace]
members = ["palettes"]
[workspace.dependencies]
clap = { version = "4.5", features = ["derive"] }
regex = "1.11"
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
[dependencies]
image = "0.25"
rand = "0.8"
rand_distr = "0.4"
rayon = "1.10"
kiddo = "4.2"
oklab = "1.1"
# Bin dependencies
lutgen-palettes = { version = "0.4", path = "palettes", optional = true }
strsim = { version = "0.11", optional = true }
dirs = { version = "5.0", optional = true }
regex = { workspace = true, optional = true }
imara-diff = { version = "0.1", optional = true }
[dependencies.bpaf]
version = "0.9.14"
features = ["derive", "dull-color", "autocomplete", "docgen"]
optional = true
[features]
default = ["bin"]
bin = ["lutgen-palettes", "bpaf", "strsim", "dirs", "regex", "imara-diff"]
[[bin]]
name = "lutgen"
path = "src/bin.rs"
required-features = ["bin"]
[[bench]]
name = "main"
harness = false
[profile.release]
opt-level = 3
lto = true
panic = "abort"
[profile.test]
inherits = "release"
[package.metadata.aur]
custom = [
"# Generate and install shell completions",
"mkdir completions",
"./lutgen --bpaf-complete-style-bash > completions/$_pkgname",
"./lutgen --bpaf-complete-style-zsh > completions/_$_pkgname",
"./lutgen --bpaf-complete-style-fish > completions/$_pkgname.fish",
"install -Dm644 completions/$_pkgname -t \"$pkgdir/usr/share/bash-completion/completions\"",
"install -Dm644 completions/_$_pkgname -t \"$pkgdir/usr/share/zsh/site-functions\"",
"install -Dm644 completions/$_pkgname.fish -t \"$pkgdir/usr/share/fish/vendor_completions.d\"",
]