99 lines
2.6 KiB
Plaintext
99 lines
2.6 KiB
Plaintext
|
cargo-features = ["public-dependency"]
|
||
|
|
||
|
[package]
|
||
|
name = "image"
|
||
|
version = "0.24.0-alpha"
|
||
|
edition = "2018"
|
||
|
rust-version = "1.56"
|
||
|
|
||
|
license = "MIT"
|
||
|
description = "Imaging library written in Rust. Provides basic filters and decoders for the most common image formats."
|
||
|
authors = ["The image-rs Developers"]
|
||
|
readme = "README.md"
|
||
|
|
||
|
# crates.io metadata
|
||
|
documentation = "https://docs.rs/image"
|
||
|
repository = "https://github.com/image-rs/image"
|
||
|
homepage = "https://github.com/image-rs/image"
|
||
|
categories = ["multimedia::images", "multimedia::encoding"]
|
||
|
|
||
|
# Crate build related
|
||
|
exclude = [
|
||
|
"src/png/testdata/*",
|
||
|
"examples/*",
|
||
|
"tests/*",
|
||
|
]
|
||
|
|
||
|
[lib]
|
||
|
name = "image"
|
||
|
path = "./src/lib.rs"
|
||
|
|
||
|
[dependencies]
|
||
|
bytemuck = { version = "1.7.0", features = ["extern_crate_alloc"] } # includes cast_vec
|
||
|
byteorder = "1.3.2"
|
||
|
num-iter = "0.1.32"
|
||
|
num-rational = { version = "0.4", default-features = false }
|
||
|
num-traits = { version = "0.2.0", public = true }
|
||
|
gif = { version = "0.11.1", optional = true }
|
||
|
jpeg = { package = "jpeg-decoder", version = "0.2.1", default-features = false, optional = true }
|
||
|
png = { version = "0.17.0", optional = true }
|
||
|
tiff = { version = "0.9.0", optional = true }
|
||
|
ravif = { version = "0.8.0", optional = true }
|
||
|
rgb = { version = "0.8.25", optional = true }
|
||
|
mp4parse = { version = "0.12.0", optional = true }
|
||
|
dav1d = { version = "0.6.0", optional = true }
|
||
|
dcv-color-primitives = { version = "0.4.0", optional = true }
|
||
|
exr = { version = "1.4.1", optional = true }
|
||
|
color_quant = { version = "1.1", public = true }
|
||
|
|
||
|
[dev-dependencies]
|
||
|
crc32fast = "1.2.0"
|
||
|
num-complex = "0.4"
|
||
|
glob = "0.3"
|
||
|
quickcheck = "1"
|
||
|
criterion = "0.3"
|
||
|
|
||
|
[features]
|
||
|
# TODO: Add "avif" to this list while preparing for 0.24.0
|
||
|
default = ["gif", "jpeg", "ico", "png", "pnm", "tga", "tiff", "webp", "bmp", "hdr", "dxt", "dds", "farbfeld", "jpeg_rayon", "openexr"]
|
||
|
|
||
|
ico = ["bmp", "png"]
|
||
|
pnm = []
|
||
|
tga = []
|
||
|
webp = []
|
||
|
bmp = []
|
||
|
hdr = []
|
||
|
dxt = []
|
||
|
dds = ["dxt"]
|
||
|
farbfeld = []
|
||
|
openexr = ["exr"]
|
||
|
|
||
|
# Enables multi-threading.
|
||
|
# Requires latest stable Rust.
|
||
|
jpeg_rayon = ["jpeg/rayon"]
|
||
|
# Non-default, enables avif support.
|
||
|
# Requires latest stable Rust.
|
||
|
avif = ["avif-encoder"]
|
||
|
# Requires latest stable Rust and recent nasm (>= 2.14).
|
||
|
avif-encoder = ["ravif", "rgb"]
|
||
|
# Non-default, even in `avif`. Requires stable Rust and native dependency libdav1d.
|
||
|
avif-decoder = ["mp4parse", "dcv-color-primitives", "dav1d"]
|
||
|
|
||
|
# Build some inline benchmarks. Useful only during development.
|
||
|
# Requires rustc nightly for feature test.
|
||
|
benchmarks = []
|
||
|
|
||
|
[[bench]]
|
||
|
path = "benches/decode.rs"
|
||
|
name = "decode"
|
||
|
harness = false
|
||
|
|
||
|
[[bench]]
|
||
|
path = "benches/encode.rs"
|
||
|
name = "encode"
|
||
|
harness = false
|
||
|
|
||
|
[[bench]]
|
||
|
name = "copy_from"
|
||
|
harness = false
|