Skip to content

Commit

Permalink
Fix required features not shown in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronErhardt authored and bilelmoussaoui committed May 4, 2023
1 parent 39ee5fd commit abbb0a5
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions gdk4-wayland/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 3 additions & 0 deletions gdk4-wayland/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions gdk4-win32/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 3 additions & 0 deletions gdk4-win32/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions gdk4-x11/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 3 additions & 0 deletions gdk4-x11/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions gdk4/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 3 additions & 0 deletions gdk4/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions gsk4/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 3 additions & 0 deletions gsk4/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions gtk4/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 3 additions & 0 deletions gtk4/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit abbb0a5

Please sign in to comment.