From 13273386398389c83150d054f6822a548eb236e7 Mon Sep 17 00:00:00 2001 From: pentamassiv Date: Tue, 18 Oct 2022 20:40:20 +0200 Subject: [PATCH] Activate dox feature wherever possible --- atk/Cargo.toml | 6 ++---- gdkwayland/Cargo.toml | 4 ++-- gdkx11/Cargo.toml | 6 ++---- gtk/Cargo.toml | 17 ++++++++++++----- 4 files changed, 18 insertions(+), 15 deletions(-) diff --git a/atk/Cargo.toml b/atk/Cargo.toml index 7c13de8858fd..601bc4b6037b 100644 --- a/atk/Cargo.toml +++ b/atk/Cargo.toml @@ -10,9 +10,7 @@ readme = "README.md" version = "0.16.0" keywords = ["atk", "gtk-rs", "gnome", "accessibility"] repository = "https://github.com/gtk-rs/gtk3-rs" -exclude = [ - "gir-files/*", -] +exclude = ["gir-files/*"] edition = "2021" rust-version = "1.63" @@ -20,7 +18,7 @@ rust-version = "1.63" name = "atk" [features] -dox = ["ffi/dox"] +dox = ["ffi/dox", "glib/dox"] v2_30 = ["ffi/v2_30"] v2_32 = ["v2_30", "ffi/v2_32"] v2_34 = ["v2_32", "ffi/v2_34"] diff --git a/gdkwayland/Cargo.toml b/gdkwayland/Cargo.toml index 6df8fbb98a07..fcb19074e74d 100644 --- a/gdkwayland/Cargo.toml +++ b/gdkwayland/Cargo.toml @@ -15,7 +15,7 @@ rust-version = "1.63" [features] v3_24 = ["ffi/v3_24", "gdk/v3_24"] v3_24_22 = ["v3_24", "ffi/v3_24_22"] -dox = ["ffi/dox"] +dox = ["ffi/dox", "gdk/dox", "glib/dox"] [package.metadata.docs.rs] features = ["dox"] @@ -25,7 +25,7 @@ ffi = { path = "./sys", package = "gdkwayland-sys" } gdk = { path = "../gdk" } glib = { git = "https://github.com/gtk-rs/gtk-rs-core" } libc = "0.2" -wayland-client = {version = "0.29", features = ["use_system_lib"]} +wayland-client = { version = "0.29", features = ["use_system_lib"] } [dev-dependencies] gir-format-check = "^0.1" diff --git a/gdkx11/Cargo.toml b/gdkx11/Cargo.toml index aa60a9df9173..9a22d299e29d 100644 --- a/gdkx11/Cargo.toml +++ b/gdkx11/Cargo.toml @@ -9,9 +9,7 @@ documentation = "https://gtk-rs.org/gtk3-rs/stable/latest/docs/gdkx11/" version = "0.16.0" description = "Rust bindings for the GDK X11 library" repository = "https://github.com/gtk-rs/gtk3-rs" -exclude = [ - "gir-files/*", -] +exclude = ["gir-files/*"] edition = "2021" rust-version = "1.63" @@ -19,7 +17,7 @@ rust-version = "1.63" name = "gdkx11" [features] -dox = ["gdk/dox", "ffi/dox"] +dox = ["x11/dox", "glib/dox", "gdk/dox", "gio/dox", "ffi/dox"] v3_24 = ["ffi/v3_24_2"] [package.metadata.docs.rs] diff --git a/gtk/Cargo.toml b/gtk/Cargo.toml index 1ea4a51c0b9d..5bc37ee8028e 100644 --- a/gtk/Cargo.toml +++ b/gtk/Cargo.toml @@ -11,9 +11,7 @@ version = "0.16.0" keywords = ["gtk", "gtk-rs", "gnome", "GUI"] repository = "https://github.com/gtk-rs/gtk3-rs" build = "build.rs" -exclude = [ - "gir-files/*", -] +exclude = ["gir-files/*"] edition = "2021" rust-version = "1.63" @@ -27,7 +25,16 @@ v3_24_8 = ["v3_24_1", "ffi/v3_24_8"] v3_24_9 = ["v3_24_8", "ffi/v3_24_9"] v3_24_11 = ["v3_24_9", "ffi/v3_24_11"] v3_24_30 = ["v3_24_11", "ffi/v3_24_30"] -dox = ["gdk/dox", "ffi/dox"] +dox = [ + "ffi/dox", + "atk/dox", + "cairo-rs/dox", + "gio/dox", + "glib/dox", + "gdk/dox", + "gdk-pixbuf/dox", + "pango/dox", +] gio_v2_58 = ["gio/v2_58"] unsafe-assume-initialized = [] @@ -45,7 +52,7 @@ futures-channel = "0.3" once_cell = "1.0" atk = { path = "../atk" } ffi = { package = "gtk-sys", path = "sys" } -gtk3-macros = { path = "../gtk3-macros" } +gtk3-macros = { path = "../gtk3-macros" } cairo-rs = { git = "https://github.com/gtk-rs/gtk-rs-core" } gio = { git = "https://github.com/gtk-rs/gtk-rs-core" } glib = { git = "https://github.com/gtk-rs/gtk-rs-core" }