[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"]