-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
45 lines (38 loc) · 1.11 KB
/
Cargo.toml
File metadata and controls
45 lines (38 loc) · 1.11 KB
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
[package]
name = "oil-scale"
version = "0.2.1"
edition = "2021"
license = "MIT"
rust-version = "1.70"
description = "Fast, streaming image resizer with sRGB-correct interpolation and low memory usage"
authors = ["Tim Elliott <tle@holymonkey.com>"]
repository = "https://github.com/ender672/oil-scale"
readme = "README.md"
keywords = ["image", "resize", "jpeg", "png", "srgb"]
categories = ["multimedia::images", "graphics"]
[features]
default = ["png", "jpeg"]
png = ["dep:png"]
jpeg = ["dep:jpeg-decoder", "dep:jpeg-encoder"]
jpeg-turbo = ["dep:libc", "dep:cc"]
force-scalar = []
[dependencies]
jpeg-decoder = { version = "0.3", optional = true }
jpeg-encoder = { version = "0.6", optional = true }
png = { version = "0.17", optional = true }
libc = { version = "0.2", optional = true }
[build-dependencies]
cc = { version = "1", optional = true }
[dev-dependencies]
rand = "0.8"
[profile.release-with-debug]
inherits = "release"
debug = true
[[bin]]
name = "imgscale"
path = "src/bin/imgscale.rs"
required-features = ["png", "jpeg"]
[[bin]]
name = "benchmark"
path = "src/bin/benchmark.rs"
required-features = ["jpeg", "png"]