-
-
Notifications
You must be signed in to change notification settings - Fork 487
/
Cargo.toml
58 lines (50 loc) · 1.49 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
[package]
name = "pngquant"
version = "3.0.3"
authors = ["Kornel Lesiński <[email protected]>"]
description = "Convert 24/32-bit PNG images to efficient 8-bit format with alpha channel"
build = "rust/build.rs"
categories = ["multimedia::images"]
homepage = "https://pngquant.org"
documentation = "https://github.com/kornelski/pngquant#readme"
include = ["/rwpng*.[ch]", "/pngquant.c","/pngquant_opts.[ch]", "/rust/*.rs", "/COPYRIGHT", "/Cargo.toml", "/README.md", "/pngquant.1"]
keywords = ["quantization", "palette", "image", "pngquant", "compression"]
license = "GPL-3.0-or-later"
readme = "README.md"
repository = "https://github.com/kornelski/pngquant.git"
edition = "2021"
rust-version = "1.63"
[[bin]]
name = "pngquant"
path = "rust/bin.rs"
[build-dependencies]
cc = "1.0.72"
dunce = "1.0.4"
[dependencies]
getopts = "0.2.21"
libc = "0.2.112"
libpng-sys = "1.1.9"
wild = "2.2.0"
imagequant-sys = { version = "4.0.3", path = "lib/imagequant-sys" }
[dependencies.cocoa_image]
optional = true
version = "1.0.6"
[dependencies.lcms2-sys]
optional = true
version = "4.0.3"
[features]
cocoa = ["dep:cocoa_image"]
default = ["lcms2"]
lcms2 = ["dep:lcms2-sys"]
lcms2-static = ["lcms2", "lcms2-sys?/static"]
png-static = ["libpng-sys/static"]
z-static = ["libpng-sys/static-libz"]
static = ["lcms2-static", "png-static"]
[profile.release]
opt-level = 3
codegen-units = 1
lto = true
panic = "abort"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = ["--generate-link-to-definition"]