-
Notifications
You must be signed in to change notification settings - Fork 10
/
Cargo.toml
68 lines (60 loc) · 1.9 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
[package]
name = "ril"
authors = ["jay3332"]
version = "0.10.3"
license = "MIT"
edition = "2021"
description = "Rust Imaging Library: A performant and high-level image processing crate for Rust"
repository = "https://github.com/jay3332/ril"
homepage = "https://github.com/jay3332/ril"
readme = "README.md"
keywords = ["ril", "imaging", "image", "processing", "editing"]
categories = ["encoding", "graphics", "multimedia", "visualization"]
[dependencies]
num-traits = "0.2"
fast_image_resize = { version = "^4.0", optional = true }
png = { version = "^0.17", optional = true }
jpeg-decoder = { version = "^0.3", optional = true }
jpeg-encoder = { version = "^0.6", features = ["simd"], optional = true }
gif = { version = "^0.13", optional = true }
libwebp-sys2 = { version = "^0.1", features = ["1_2", "mux", "demux"], optional = true }
fontdue = { version = "^0.7", optional = true }
color_quant = { version = "^1.1", optional = true }
colorgrad = { version = "^0.6", optional = true, default-features = false }
[features]
default = ["resize", "text", "quantize", "gradient"]
all-pure = ["resize", "png", "jpeg", "gif", "text", "quantize"]
all = ["all-pure", "webp"]
png = ["dep:png"]
jpeg = ["dep:jpeg-decoder", "dep:jpeg-encoder"]
gif = ["dep:gif"]
webp = ["dep:libwebp-sys2"]
resize = ["dep:fast_image_resize"]
text = ["dep:fontdue"]
quantize = ["dep:color_quant"]
gradient = ["dep:colorgrad"]
static = ["libwebp-sys2?/static"]
[dev-dependencies]
criterion = "^0.4"
image = "^0"
imageproc = "^0.23"
rusttype = "^0.9"
[[bench]]
path = "benches/invert.rs"
name = "invert"
harness = false
[[bench]]
path = "benches/invert_comparison.rs"
name = "invert_comparison"
harness = false
[[bench]]
path = "benches/text_comparison.rs"
name = "text_comparison"
harness = false
[[bench]]
path = "benches/resize_comparison.rs"
name = "resize_comparison"
harness = false
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]