From 997982269a2669fa9e35afdaef1f7080df979723 Mon Sep 17 00:00:00 2001 From: Jonas Schade Date: Sat, 6 Jan 2024 20:12:18 +0100 Subject: [PATCH] Show features in documentation (#2066) --- Cargo.toml | 6 +++++- src/lib.rs | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9faa533b60..06e498eddf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,10 @@ repository = "https://github.com/image-rs/image" homepage = "https://github.com/image-rs/image" categories = ["multimedia::images", "multimedia::encoding", "encoding"] +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] + include = [ "/LICENSE", "/README.md", @@ -37,7 +41,7 @@ tiff = { version = "0.9.0", optional = true } ravif = { version = "0.11.0", optional = true } rgb = { version = "0.8.25", optional = true } mp4parse = { version = "0.17.0", optional = true } -dav1d = { version = "0.10.1", optional = true } +dav1d = { version = "0.10.2", optional = true } dcv-color-primitives = { version = "0.6.1", optional = true } color_quant = "1.1" exr = { version = "1.5.0", optional = true } diff --git a/src/lib.rs b/src/lib.rs index 08b47835e6..d25d89741a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -119,6 +119,7 @@ #![cfg_attr(all(test, feature = "benchmarks"), feature(test))] // it's a backwards compatibility break #![allow(clippy::wrong_self_convention, clippy::enum_variant_names)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] #[cfg(all(test, feature = "benchmarks"))] extern crate test;