Skip to content

Commit 78f7523

Browse files
authored
Merge pull request #92 from gtk-rs/revert-85-remove-dox
Revert "Remove dox"
2 parents 91ad42f + 8c53006 commit 78f7523

31 files changed

+62
-54
lines changed

gdk4-wayland/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8)
22
from gir-files (https://github.com/gtk-rs/gir-files @ ddab3f2)

gdk4-wayland/sys/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = "2018"
88
name = "gtk4-wayland"
99
version = "3.94"
1010
[package.metadata.docs.rs]
11-
features = []
11+
features = ["dox"]
1212

1313
[lib]
1414
name = "gdk4_wayland_sys"
@@ -27,3 +27,4 @@ shell-words = "1.0.0"
2727
tempfile = "3"
2828

2929
[features]
30+
dox = []

gdk4-wayland/sys/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
// from gir-files (https://github.com/gtk-rs/gir-files)
33
// DO NOT EDIT
44

5-
#[cfg(any(not(doc), doctest))]
5+
#[cfg(not(feature = "dox"))]
66
use std::process;
77

8-
#[cfg(all(not(doctest), doc))]
8+
#[cfg(feature = "dox")]
99
fn main() {} // prevent linking libraries to avoid documentation failure
1010

11-
#[cfg(any(not(doc), doctest))]
11+
#[cfg(not(feature = "dox"))]
1212
fn main() {
1313
if let Err(s) = system_deps::Config::new().probe() {
1414
let _ = eprintln!("{}", s);

gdk4-wayland/sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
clippy::type_complexity,
99
clippy::unreadable_literal
1010
)]
11-
#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
11+
#![cfg_attr(feature = "dox", feature(doc_cfg))]
1212

1313
use glib_sys as glib;
1414

gdk4-wayland/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8)
22
from gir-files (https://github.com/gtk-rs/gir-files @ ddab3f2)

gdk4-x11/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8)
22
from gir-files (https://github.com/gtk-rs/gir-files @ ddab3f2)

gdk4-x11/sys/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build = "build.rs"
88
name = "gtk4-x11"
99
version = "3.94"
1010
[package.metadata.docs.rs]
11-
features = []
11+
features = ["dox"]
1212

1313
[lib]
1414
name = "gdk4_x11_sys"
@@ -31,3 +31,4 @@ shell-words = "1.0.0"
3131
tempfile = "3"
3232

3333
[features]
34+
dox = []

gdk4-x11/sys/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
// from gir-files (https://github.com/gtk-rs/gir-files)
33
// DO NOT EDIT
44

5-
#[cfg(any(not(doc), doctest))]
5+
#[cfg(not(feature = "dox"))]
66
use std::process;
77

8-
#[cfg(all(not(doctest), doc))]
8+
#[cfg(feature = "dox")]
99
fn main() {} // prevent linking libraries to avoid documentation failure
1010

11-
#[cfg(any(not(doc), doctest))]
11+
#[cfg(not(feature = "dox"))]
1212
fn main() {
1313
if let Err(s) = system_deps::Config::new().probe() {
1414
let _ = eprintln!("{}", s);

gdk4-x11/sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
clippy::type_complexity,
99
clippy::unreadable_literal
1010
)]
11-
#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
11+
#![cfg_attr(feature = "dox", feature(doc_cfg))]
1212

1313
use gdk4_sys as gdk;
1414
use glib_sys as glib;

gdk4-x11/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8)
22
from gir-files (https://github.com/gtk-rs/gir-files @ ddab3f2)

gdk4/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ exclude = [
1919
name = "gdk4"
2020

2121
[features]
22+
dox = ["ffi/dox", "glib/dox", "gio/dox", "gdk-pixbuf/dox", "cairo-rs/dox", "pango/dox"]
2223
purge-lgpl-docs = ["gtk-rs-lgpl-docs", "cairo-rs/purge-lgpl-docs", "gdk-pixbuf/purge-lgpl-docs", "gio/purge-lgpl-docs"]
2324
embed-lgpl-docs = ["gtk-rs-lgpl-docs", "cairo-rs/embed-lgpl-docs", "gdk-pixbuf/embed-lgpl-docs", "gio/embed-lgpl-docs"]
2425

2526
[package.metadata.docs.rs]
26-
features = ["embed-lgpl-docs"]
27+
features = ["dox", "embed-lgpl-docs"]
2728

2829
[build-dependencies.gtk-rs-lgpl-docs]
2930
version = "0.1.3"

gdk4/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8)
22
from gir-files (https://github.com/gtk-rs/gir-files @ ddab3f2)

gdk4/sys/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ git = "https://github.com/gtk-rs/gtk-rs"
2626
shell-words = "1.0.0"
2727
tempfile = "3"
2828

29+
[features]
30+
dox = []
31+
2932
[lib]
3033
name = "gdk4_sys"
3134

@@ -41,9 +44,7 @@ repository = "https://github.com/gtk-rs/sys"
4144
version = "0.1.0"
4245
edition = "2018"
4346
[package.metadata.docs.rs]
44-
features = []
47+
features = ["dox"]
4548
[package.metadata.system-deps.gtk4]
4649
name = "gtk4"
4750
version = "3.94"
48-
49-
[features]

gdk4/sys/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
// from gir-files (https://github.com/gtk-rs/gir-files)
33
// DO NOT EDIT
44

5-
#[cfg(any(not(doc), doctest))]
5+
#[cfg(not(feature = "dox"))]
66
use std::process;
77

8-
#[cfg(all(not(doctest), doc))]
8+
#[cfg(feature = "dox")]
99
fn main() {} // prevent linking libraries to avoid documentation failure
1010

11-
#[cfg(any(not(doc), doctest))]
11+
#[cfg(not(feature = "dox"))]
1212
fn main() {
1313
if let Err(s) = system_deps::Config::new().probe() {
1414
let _ = eprintln!("{}", s);

gdk4/sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
clippy::type_complexity,
99
clippy::unreadable_literal
1010
)]
11-
#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
11+
#![cfg_attr(feature = "dox", feature(doc_cfg))]
1212

1313
use cairo_sys as cairo;
1414
use gdk_pixbuf_sys as gdk_pixbuf;

gdk4/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8)
22
from gir-files (https://github.com/gtk-rs/gir-files @ ddab3f2)

gsk4/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ exclude = [
1919
name = "gsk4"
2020

2121
[features]
22+
dox = ["ffi/dox", "gdk/dox", "graphene/dox", "glib/dox", "cairo-rs/dox", "pango/dox"]
2223
purge-lgpl-docs = ["gtk-rs-lgpl-docs", "gdk/purge-lgpl-docs", "graphene/purge-lgpl-docs", "cairo-rs/purge-lgpl-docs"]
2324
embed-lgpl-docs = ["gtk-rs-lgpl-docs", "gdk/embed-lgpl-docs", "graphene/embed-lgpl-docs", "cairo-rs/embed-lgpl-docs"]
2425
vulkan = []
2526
broadway = []
2627

2728
[package.metadata.docs.rs]
28-
features = ["embed-lgpl-docs"]
29+
features = ["dox", "embed-lgpl-docs"]
2930

3031
[build-dependencies.gtk-rs-lgpl-docs]
3132
version = "0.1.3"

gsk4/src/auto/mod.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ pub use self::blur_node::BlurNode;
1111
mod border_node;
1212
pub use self::border_node::BorderNode;
1313

14-
#[cfg(any(feature = "broadway", all(not(doctest), doc)))]
15-
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "broadway")))]
14+
#[cfg(any(feature = "broadway", feature = "dox"))]
15+
#[cfg_attr(feature = "dox", doc(cfg(feature = "broadway")))]
1616
mod broadway_renderer;
17-
#[cfg(any(feature = "broadway", all(not(doctest), doc)))]
18-
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "broadway")))]
17+
#[cfg(any(feature = "broadway", feature = "dox"))]
18+
#[cfg_attr(feature = "dox", doc(cfg(feature = "broadway")))]
1919
pub use self::broadway_renderer::BroadwayRenderer;
2020

2121
mod cairo_node;
@@ -86,11 +86,11 @@ pub use self::texture_node::TextureNode;
8686
mod transform_node;
8787
pub use self::transform_node::TransformNode;
8888

89-
#[cfg(any(feature = "vulkan", all(not(doctest), doc)))]
90-
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "vulkan")))]
89+
#[cfg(any(feature = "vulkan", feature = "dox"))]
90+
#[cfg_attr(feature = "dox", doc(cfg(feature = "vulkan")))]
9191
mod vulkan_renderer;
92-
#[cfg(any(feature = "vulkan", all(not(doctest), doc)))]
93-
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "vulkan")))]
92+
#[cfg(any(feature = "vulkan", feature = "dox"))]
93+
#[cfg_attr(feature = "dox", doc(cfg(feature = "vulkan")))]
9494
pub use self::vulkan_renderer::VulkanRenderer;
9595

9696
mod transform;

gsk4/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8)
22
from gir-files (https://github.com/gtk-rs/gir-files @ ddab3f2)

gsk4/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 2013-2018, The Gtk-rs Project Developers.
22
// See the COPYRIGHT file at the top-level directory of this distribution.
33
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
4-
#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
4+
#![cfg_attr(feature = "dox", feature(doc_cfg))]
55
#![allow(clippy::let_unit_value)]
66
#![allow(clippy::new_without_default)]
77
#![allow(clippy::type_complexity)]

gsk4/sys/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ git = "https://github.com/gtk-rs/gtk-rs"
2626
shell-words = "1.0.0"
2727
tempfile = "3"
2828

29+
[features]
30+
dox = []
31+
2932
[lib]
3033
name = "gsk4_sys"
3134

@@ -41,9 +44,7 @@ repository = "https://github.com/gtk-rs/sys"
4144
version = "0.1.0"
4245
edition = "2018"
4346
[package.metadata.docs.rs]
44-
features = []
47+
features = ["dox"]
4548
[package.metadata.system-deps.gtk4]
4649
name = "gtk4"
4750
version = "3.94"
48-
49-
[features]

gsk4/sys/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
// from gir-files (https://github.com/gtk-rs/gir-files)
33
// DO NOT EDIT
44

5-
#[cfg(any(not(doc), doctest))]
5+
#[cfg(not(feature = "dox"))]
66
use std::process;
77

8-
#[cfg(all(not(doctest), doc))]
8+
#[cfg(feature = "dox")]
99
fn main() {} // prevent linking libraries to avoid documentation failure
1010

11-
#[cfg(any(not(doc), doctest))]
11+
#[cfg(not(feature = "dox"))]
1212
fn main() {
1313
if let Err(s) = system_deps::Config::new().probe() {
1414
let _ = eprintln!("{}", s);

gsk4/sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
clippy::type_complexity,
99
clippy::unreadable_literal
1010
)]
11-
#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
11+
#![cfg_attr(feature = "dox", feature(doc_cfg))]
1212

1313
use cairo_sys as cairo;
1414
use gdk4_sys as gdk;

gsk4/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8)
22
from gir-files (https://github.com/gtk-rs/gir-files @ ddab3f2)

gtk4/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ name = "gtk4"
2626
[features]
2727
purge-lgpl-docs = ["gtk-rs-lgpl-docs", "gdk/purge-lgpl-docs", "gsk/purge-lgpl-docs"]
2828
embed-lgpl-docs = ["gtk-rs-lgpl-docs", "gdk/embed-lgpl-docs", "gsk/embed-lgpl-docs"]
29+
dox = ["gdk/dox", "gsk/dox", "ffi/dox"]
2930

3031
[package.metadata.docs.rs]
31-
features = ["embed-lgpl-docs"]
32+
features = ["dox", "embed-lgpl-docs"]
3233

3334
[build-dependencies.gtk-rs-lgpl-docs]
3435
version = "0.1.3"

gtk4/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8)
22
from gir-files (https://github.com/gtk-rs/gir-files @ ddab3f2)

gtk4/sys/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ git = "https://github.com/gtk-rs/gtk-rs"
3535
shell-words = "1.0.0"
3636
tempfile = "3"
3737

38+
[features]
39+
dox = []
40+
3841
[lib]
3942
name = "gtk4_sys"
4043

@@ -51,9 +54,7 @@ repository = "https://github.com/gtk-rs/sys"
5154
version = "0.1.0"
5255
edition = "2018"
5356
[package.metadata.docs.rs]
54-
features = []
57+
features = ["dox"]
5558
[package.metadata.system-deps.gtk4]
5659
name = "gtk4"
5760
version = "3.94"
58-
59-
[features]

gtk4/sys/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
// from gir-files (https://github.com/gtk-rs/gir-files)
33
// DO NOT EDIT
44

5-
#[cfg(any(not(doc), doctest))]
5+
#[cfg(not(feature = "dox"))]
66
use std::process;
77

8-
#[cfg(all(not(doctest), doc))]
8+
#[cfg(feature = "dox")]
99
fn main() {} // prevent linking libraries to avoid documentation failure
1010

11-
#[cfg(any(not(doc), doctest))]
11+
#[cfg(not(feature = "dox"))]
1212
fn main() {
1313
if let Err(s) = system_deps::Config::new().probe() {
1414
let _ = eprintln!("{}", s);

gtk4/sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
clippy::type_complexity,
99
clippy::unreadable_literal
1010
)]
11-
#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
11+
#![cfg_attr(feature = "dox", feature(doc_cfg))]
1212

1313
use cairo_sys as cairo;
1414
use gdk4_sys as gdk;

gtk4/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8)
22
from gir-files (https://github.com/gtk-rs/gir-files @ ddab3f2)

0 commit comments

Comments
 (0)