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.
This commit is contained in:
Marijn Suijten 2020-11-18 13:48:41 +01:00
parent 7db21a3375
commit 3f373f623a
17 changed files with 33 additions and 0 deletions

View file

@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate libc; extern crate libc;
extern crate futures_core; extern crate futures_core;

View file

@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate array_init; extern crate array_init;
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;

View file

@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate glib_sys; extern crate glib_sys;
extern crate gobject_sys; extern crate gobject_sys;
#[macro_use] #[macro_use]

View file

@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate glib_sys; extern crate glib_sys;
extern crate gobject_sys; extern crate gobject_sys;
extern crate gstreamer as gst; extern crate gstreamer as gst;

View file

@ -1,3 +1,5 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))]
#[macro_use] #[macro_use]
extern crate glib; extern crate glib;
extern crate glib_sys; extern crate glib_sys;

View file

@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate libc; extern crate libc;
use std::sync::Once; use std::sync::Once;

View file

@ -7,6 +7,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;
extern crate byteorder; extern crate byteorder;

View file

@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate gio; extern crate gio;
extern crate glib_sys; extern crate glib_sys;
extern crate gobject_sys; extern crate gobject_sys;

View file

@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;
extern crate libc; extern crate libc;

View file

@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate libc; extern crate libc;
extern crate glib_sys; extern crate glib_sys;

View file

@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;
extern crate once_cell; extern crate once_cell;

View file

@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;
extern crate libc; extern crate libc;

View file

@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;
extern crate libc; extern crate libc;

View file

@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
#[macro_use] #[macro_use]
extern crate glib; extern crate glib;
extern crate glib_sys; extern crate glib_sys;

View file

@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;
extern crate libc; extern crate libc;

View file

@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate libc; extern crate libc;
#[macro_use] #[macro_use]

View file

@ -6,6 +6,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
#![recursion_limit = "256"] #![recursion_limit = "256"]
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;