diff --git a/pixman/Cargo.toml b/pixman/Cargo.toml index b04cab1..7efcb1a 100644 --- a/pixman/Cargo.toml +++ b/pixman/Cargo.toml @@ -7,6 +7,10 @@ name = "pixman" rust-version = "1.65.0" version = "0.1.0" +[package.metadata.docs.rs] +features = ["drm-fourcc"] +rustdoc-args = ["--cfg", "docsrs"] + [dependencies] drm-fourcc = {version = "2.2.0", optional = true} pixman-sys = {version = "0.1.0", path = "../pixman-sys"} diff --git a/pixman/src/lib.rs b/pixman/src/lib.rs index f7f12a0..508014c 100644 --- a/pixman/src/lib.rs +++ b/pixman/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + use std::os::raw::c_int; pub use pixman_sys as ffi;