Skip to content

Commit

Permalink
include features in rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Meissl authored and cmeissl committed Oct 25, 2023
1 parent d386a7a commit 75441b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pixman/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down
2 changes: 2 additions & 0 deletions pixman/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

use std::os::raw::c_int;

pub use pixman_sys as ffi;
Expand Down

0 comments on commit 75441b9

Please sign in to comment.