libcaesium/Cargo.toml

62 lines
1.6 KiB
TOML
Raw Normal View History

2021-10-23 17:18:52 +02:00
[package]
name = "libcaesium"
2024-10-01 19:14:20 +02:00
version = "0.16.5"
2021-10-23 17:18:52 +02:00
authors = ["Matteo Paonessa <matteo.paonessa@gmail.com>"]
2022-04-11 09:58:52 +02:00
edition = "2021"
2021-10-23 17:18:52 +02:00
categories = ["multimedia::images"]
keywords = [
"compression",
"jpeg",
"png",
"gif",
"webp"
]
description = "A lossy/lossless image compression library."
readme = "README.md"
exclude = [
"tests/*",
]
homepage = "https://github.com/Lymphatus/libcaesium"
repository = "https://github.com/Lymphatus/libcaesium"
license = "Apache-2.0"
2023-08-12 14:44:59 +02:00
[features]
2024-02-13 20:17:05 +01:00
default = ["jpg", "png", "webp", "gif", "tiff", "parallel"]
2024-01-08 21:26:19 +01:00
jpg = ["dep:mozjpeg-sys", "image/jpeg"]
png = ["dep:oxipng", "dep:lodepng", "dep:imagequant", "image/png"]
webp = ["dep:webp", "image/webp"]
gif = ["dep:gifsicle", "image/gif"]
2024-06-12 17:19:37 +02:00
tiff = ["image/tiff"]
2024-01-08 21:26:19 +01:00
parallel = ["oxipng?/parallel", "imagequant?/threads", "dssim/threads"]
2023-08-12 14:44:59 +02:00
2021-10-23 17:18:52 +02:00
[dependencies]
2024-06-12 17:32:29 +02:00
mozjpeg-sys = { version = "2.2", optional = true }
2024-01-23 19:02:46 +01:00
oxipng = { version = "9.0", default-features = false, features = ["filetime", "zopfli"], optional = true }
2022-04-13 20:53:36 +02:00
libc = "0.2"
2024-01-23 19:02:46 +01:00
gifsicle = { version = "1.94", optional = true }
2024-04-23 21:50:44 +02:00
webp = { version = "0.3.0", optional = true }
2024-06-12 17:19:37 +02:00
infer = "0.16.0"
2024-04-04 15:59:30 +02:00
image = { version = "0.25.1", default-features = false }
2022-10-02 12:48:09 +02:00
img-parts = "0.3"
2024-06-12 17:19:37 +02:00
bytes = "1.6"
2024-01-23 19:02:46 +01:00
lodepng = { version = "3.10", optional = true }
2024-02-13 20:17:05 +01:00
imagequant = { version = "4.3", optional = true, default-features = false }
2024-06-12 17:19:37 +02:00
tiff = { version = "0.9" }
kamadak-exif = "0.5"
2022-10-17 14:16:26 +02:00
2021-10-23 17:18:52 +02:00
[dev-dependencies]
2024-01-23 19:02:46 +01:00
dssim = { version = "3.3", default-features = false, features = ["no-macos-vimage"] }
2021-10-23 17:18:52 +02:00
2022-06-23 13:14:15 +02:00
[[bin]]
name = "main"
path = "src/main.rs"
2021-10-23 17:18:52 +02:00
[lib]
2022-02-22 15:00:14 +01:00
name = "caesium"
2021-10-23 17:18:52 +02:00
path = "src/lib.rs"
2022-01-24 16:21:05 +01:00
crate-type = ["lib", "cdylib"]
2021-10-23 17:18:52 +02:00
test = true
doctest = false
bench = false
doc = false