From 3f373f623aab765ead4ddaef6b11716431f0295d Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Wed, 18 Nov 2020 13:48:41 +0100 Subject: [PATCH] Enable feature(doc_cfg) in all lib.rs The next version of gir is going to generate doc(cfg()) attributes on many symbols to show feature-dependence hints. While autogenerated sys crates get this attribute in their own (generated) lib.rs file the safe wrapper crates do not have such an autogenerated lib.rs file. --- gstreamer-app/src/lib.rs | 2 ++ gstreamer-audio/src/lib.rs | 2 ++ gstreamer-base/src/lib.rs | 2 ++ gstreamer-check/src/lib.rs | 2 ++ gstreamer-controller/src/lib.rs | 2 ++ gstreamer-editing-services/src/lib.rs | 2 ++ gstreamer-gl/src/lib.rs | 2 ++ gstreamer-net/src/lib.rs | 2 ++ gstreamer-pbutils/src/lib.rs | 2 ++ gstreamer-player/src/lib.rs | 2 ++ gstreamer-rtp/src/lib.rs | 2 ++ gstreamer-rtsp-server/src/lib.rs | 2 ++ gstreamer-rtsp/src/lib.rs | 2 ++ gstreamer-sdp/src/lib.rs | 2 ++ gstreamer-video/src/lib.rs | 2 ++ gstreamer-webrtc/src/lib.rs | 2 ++ gstreamer/src/lib.rs | 1 + 17 files changed, 33 insertions(+) diff --git a/gstreamer-app/src/lib.rs b/gstreamer-app/src/lib.rs index b4281c6f4..21bec3ba9 100644 --- a/gstreamer-app/src/lib.rs +++ b/gstreamer-app/src/lib.rs @@ -6,6 +6,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "dox", feature(doc_cfg))] + extern crate libc; extern crate futures_core; diff --git a/gstreamer-audio/src/lib.rs b/gstreamer-audio/src/lib.rs index 119453674..9ce843c63 100644 --- a/gstreamer-audio/src/lib.rs +++ b/gstreamer-audio/src/lib.rs @@ -6,6 +6,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "dox", feature(doc_cfg))] + extern crate array_init; #[macro_use] extern crate bitflags; diff --git a/gstreamer-base/src/lib.rs b/gstreamer-base/src/lib.rs index 5d418e28a..f9086f951 100644 --- a/gstreamer-base/src/lib.rs +++ b/gstreamer-base/src/lib.rs @@ -6,6 +6,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "dox", feature(doc_cfg))] + extern crate glib_sys; extern crate gobject_sys; #[macro_use] diff --git a/gstreamer-check/src/lib.rs b/gstreamer-check/src/lib.rs index 8f603d8c3..f6d89b6b4 100644 --- a/gstreamer-check/src/lib.rs +++ b/gstreamer-check/src/lib.rs @@ -6,6 +6,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "dox", feature(doc_cfg))] + extern crate glib_sys; extern crate gobject_sys; extern crate gstreamer as gst; diff --git a/gstreamer-controller/src/lib.rs b/gstreamer-controller/src/lib.rs index 3a4f85ce0..ae05f9e52 100644 --- a/gstreamer-controller/src/lib.rs +++ b/gstreamer-controller/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(feature = "dox", feature(doc_cfg))] + #[macro_use] extern crate glib; extern crate glib_sys; diff --git a/gstreamer-editing-services/src/lib.rs b/gstreamer-editing-services/src/lib.rs index ddee98eec..bf3c3ae5a 100644 --- a/gstreamer-editing-services/src/lib.rs +++ b/gstreamer-editing-services/src/lib.rs @@ -6,6 +6,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "dox", feature(doc_cfg))] + extern crate libc; use std::sync::Once; diff --git a/gstreamer-gl/src/lib.rs b/gstreamer-gl/src/lib.rs index 453cdab7b..f57e2472e 100644 --- a/gstreamer-gl/src/lib.rs +++ b/gstreamer-gl/src/lib.rs @@ -7,6 +7,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "dox", feature(doc_cfg))] + #[macro_use] extern crate bitflags; extern crate byteorder; diff --git a/gstreamer-net/src/lib.rs b/gstreamer-net/src/lib.rs index 7af81fde8..fb11b8c22 100644 --- a/gstreamer-net/src/lib.rs +++ b/gstreamer-net/src/lib.rs @@ -6,6 +6,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "dox", feature(doc_cfg))] + extern crate gio; extern crate glib_sys; extern crate gobject_sys; diff --git a/gstreamer-pbutils/src/lib.rs b/gstreamer-pbutils/src/lib.rs index b5de8e30c..cde45fa8a 100644 --- a/gstreamer-pbutils/src/lib.rs +++ b/gstreamer-pbutils/src/lib.rs @@ -6,6 +6,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "dox", feature(doc_cfg))] + #[macro_use] extern crate bitflags; extern crate libc; diff --git a/gstreamer-player/src/lib.rs b/gstreamer-player/src/lib.rs index 067364cda..1f80c6e9a 100644 --- a/gstreamer-player/src/lib.rs +++ b/gstreamer-player/src/lib.rs @@ -6,6 +6,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "dox", feature(doc_cfg))] + extern crate libc; extern crate glib_sys; diff --git a/gstreamer-rtp/src/lib.rs b/gstreamer-rtp/src/lib.rs index 23ccd35fd..651b4f990 100644 --- a/gstreamer-rtp/src/lib.rs +++ b/gstreamer-rtp/src/lib.rs @@ -6,6 +6,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "dox", feature(doc_cfg))] + #[macro_use] extern crate bitflags; extern crate once_cell; diff --git a/gstreamer-rtsp-server/src/lib.rs b/gstreamer-rtsp-server/src/lib.rs index 598f9fad4..931738590 100644 --- a/gstreamer-rtsp-server/src/lib.rs +++ b/gstreamer-rtsp-server/src/lib.rs @@ -6,6 +6,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "dox", feature(doc_cfg))] + #[macro_use] extern crate bitflags; extern crate libc; diff --git a/gstreamer-rtsp/src/lib.rs b/gstreamer-rtsp/src/lib.rs index fb3ba7894..f5af50ac3 100644 --- a/gstreamer-rtsp/src/lib.rs +++ b/gstreamer-rtsp/src/lib.rs @@ -6,6 +6,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "dox", feature(doc_cfg))] + #[macro_use] extern crate bitflags; extern crate libc; diff --git a/gstreamer-sdp/src/lib.rs b/gstreamer-sdp/src/lib.rs index 2ea82882f..27f8b9974 100644 --- a/gstreamer-sdp/src/lib.rs +++ b/gstreamer-sdp/src/lib.rs @@ -6,6 +6,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "dox", feature(doc_cfg))] + #[macro_use] extern crate glib; extern crate glib_sys; diff --git a/gstreamer-video/src/lib.rs b/gstreamer-video/src/lib.rs index ad87efdb9..459492ab3 100644 --- a/gstreamer-video/src/lib.rs +++ b/gstreamer-video/src/lib.rs @@ -6,6 +6,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "dox", feature(doc_cfg))] + #[macro_use] extern crate bitflags; extern crate libc; diff --git a/gstreamer-webrtc/src/lib.rs b/gstreamer-webrtc/src/lib.rs index ddb3c9d70..9c1ea31ab 100644 --- a/gstreamer-webrtc/src/lib.rs +++ b/gstreamer-webrtc/src/lib.rs @@ -6,6 +6,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "dox", feature(doc_cfg))] + extern crate libc; #[macro_use] diff --git a/gstreamer/src/lib.rs b/gstreamer/src/lib.rs index dc2a962a3..b95d006dd 100644 --- a/gstreamer/src/lib.rs +++ b/gstreamer/src/lib.rs @@ -6,6 +6,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "dox", feature(doc_cfg))] #![recursion_limit = "256"] #[macro_use] extern crate bitflags;