diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 09a9dea99e9f..24555c6d0aa2 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -67,6 +67,7 @@ jobs: --extern-html-root-url=khronos_egl=https://docs.rs/khronos-egl/latest/ --extern-html-root-url=xkb=https://docs.rs/xkb/latest/ --extern-html-root-url=windows=https://microsoft.github.io/windows-docs-rs/doc/ + --cfg docsrs - uses: actions-rs/cargo@v1 with: command: doc diff --git a/gdk4-wayland/Cargo.toml b/gdk4-wayland/Cargo.toml index 006ada0e3aeb..7d8c10ac790e 100644 --- a/gdk4-wayland/Cargo.toml +++ b/gdk4-wayland/Cargo.toml @@ -20,6 +20,8 @@ egl = ["khronos-egl"] xkb_crate = ["xkb"] [package.metadata.docs.rs] +all-features = true +rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] [dependencies] diff --git a/gdk4-wayland/sys/Cargo.toml b/gdk4-wayland/sys/Cargo.toml index 7af2da663e11..d3530053dc8a 100644 --- a/gdk4-wayland/sys/Cargo.toml +++ b/gdk4-wayland/sys/Cargo.toml @@ -23,6 +23,9 @@ version = "4.4" version = "4.10" [package.metadata.docs.rs] +all-features = true +rustc-args = ["--cfg", "docsrs"] +rustdoc-args = ["--cfg", "docsrs"] features = [] [lib] diff --git a/gdk4-win32/Cargo.toml b/gdk4-win32/Cargo.toml index d6b8d2a74ecd..4155c74b1bf0 100644 --- a/gdk4-win32/Cargo.toml +++ b/gdk4-win32/Cargo.toml @@ -14,6 +14,8 @@ rust-version = "1.64" build = "build.rs" [package.metadata.docs.rs] +all-features = true +rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] [package.metadata.system-deps.gtk4_win32] diff --git a/gdk4-win32/sys/Cargo.toml b/gdk4-win32/sys/Cargo.toml index dda235fe97ff..93c17cd12f15 100644 --- a/gdk4-win32/sys/Cargo.toml +++ b/gdk4-win32/sys/Cargo.toml @@ -23,6 +23,9 @@ version = "4.4" version = "4.8" [package.metadata.docs.rs] +all-features = true +rustc-args = ["--cfg", "docsrs"] +rustdoc-args = ["--cfg", "docsrs"] features = [] [lib] diff --git a/gdk4-x11/Cargo.toml b/gdk4-x11/Cargo.toml index b5b206f5122e..90ce452fb74d 100644 --- a/gdk4-x11/Cargo.toml +++ b/gdk4-x11/Cargo.toml @@ -18,6 +18,8 @@ egl = ["khronos-egl"] xlib = ["x11"] [package.metadata.docs.rs] +all-features = true +rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] [dependencies] diff --git a/gdk4-x11/sys/Cargo.toml b/gdk4-x11/sys/Cargo.toml index 0aff0ce78e69..1f6ebfec7a1c 100644 --- a/gdk4-x11/sys/Cargo.toml +++ b/gdk4-x11/sys/Cargo.toml @@ -23,6 +23,9 @@ version = "4.4" version = "4.10" [package.metadata.docs.rs] +all-features = true +rustc-args = ["--cfg", "docsrs"] +rustdoc-args = ["--cfg", "docsrs"] features = [] [lib] diff --git a/gdk4/Cargo.toml b/gdk4/Cargo.toml index 07a15faf14be..6f0cd107ea61 100644 --- a/gdk4/Cargo.toml +++ b/gdk4/Cargo.toml @@ -23,6 +23,8 @@ v4_10 = ["ffi/v4_10", "v4_8"] v4_12 = ["ffi/v4_12", "v4_10"] [package.metadata.docs.rs] +all-features = true +rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] [dependencies] diff --git a/gdk4/sys/Cargo.toml b/gdk4/sys/Cargo.toml index 10f93f53bc71..92c2fff635c1 100644 --- a/gdk4/sys/Cargo.toml +++ b/gdk4/sys/Cargo.toml @@ -13,6 +13,9 @@ version = "0.7.0" rust-version = "1.64" [package.metadata.docs.rs] +all-features = true +rustc-args = ["--cfg", "docsrs"] +rustdoc-args = ["--cfg", "docsrs"] features = [] [package.metadata.system-deps.gtk4] diff --git a/gsk4/Cargo.toml b/gsk4/Cargo.toml index 443a08edaf3a..193275a7978a 100644 --- a/gsk4/Cargo.toml +++ b/gsk4/Cargo.toml @@ -22,6 +22,8 @@ v4_6 = ["ffi/v4_6", "gdk/v4_6", "v4_4"] v4_10 = ["ffi/v4_10", "gdk/v4_10", "v4_6"] [package.metadata.docs.rs] +all-features = true +rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] [dependencies] diff --git a/gsk4/sys/Cargo.toml b/gsk4/sys/Cargo.toml index 3bf92d14d96f..bb4dd4e5a695 100644 --- a/gsk4/sys/Cargo.toml +++ b/gsk4/sys/Cargo.toml @@ -13,6 +13,9 @@ version = "0.7.0" rust-version = "1.64" [package.metadata.docs.rs] +all-features = true +rustc-args = ["--cfg", "docsrs"] +rustdoc-args = ["--cfg", "docsrs"] features = [] [package.metadata.system-deps.gtk4] diff --git a/gtk4/Cargo.toml b/gtk4/Cargo.toml index bbf6c8d67d1b..eec9cb507cc8 100644 --- a/gtk4/Cargo.toml +++ b/gtk4/Cargo.toml @@ -34,6 +34,8 @@ gnome_43 = ["v4_8", "cairo-rs/v1_16", "gdk-pixbuf/v2_42", "gio/v2_74"] gnome_42 = ["v4_6", "cairo-rs/v1_16", "gdk-pixbuf/v2_42", "gio/v2_72"] [package.metadata.docs.rs] +all-features = true +rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] [dependencies] diff --git a/gtk4/sys/Cargo.toml b/gtk4/sys/Cargo.toml index cfe34fe8a433..c49d8a683b89 100644 --- a/gtk4/sys/Cargo.toml +++ b/gtk4/sys/Cargo.toml @@ -14,6 +14,9 @@ version = "0.7.0" rust-version = "1.64" [package.metadata.docs.rs] +all-features = true +rustc-args = ["--cfg", "docsrs"] +rustdoc-args = ["--cfg", "docsrs"] features = [] [package.metadata.system-deps.gtk4]