Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ jobs:
run: cargo build --manifest-path glib-macros/Cargo.toml
- name: "glib-macros: test"
run: cargo test --manifest-path glib-macros/Cargo.toml
if: matrix.rust == 'stable'
# glib-macros in 2 levels dependent
- name: Check two levels glib dependent
run: cargo check
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
0.17=0.17
0.16=0.16
0.15=0.15
RUSTFLAGS: --cfg docsrs
RUSTDOCFLAGS: --cfg docsrs -Zunstable-options --generate-link-to-definition
steps:
- uses: actions/checkout@v4
Expand Down
84 changes: 42 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions cairo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ float_eq = "1"

[package.metadata.docs.rs]
all-features = true
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
rustdoc-args = ["--generate-link-to-definition"]
4 changes: 0 additions & 4 deletions cairo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ Currently, the minimum supported Rust version is `1.83.0`.

* **win32-surface** - Microsoft Windows surface support

## Documentation rustdoc attributes

* **docsrs** - Used to keep system dependent items in documentation

## Using

We recommend using [crates from crates.io](https://crates.io/keywords/gtk-rs),
Expand Down
3 changes: 1 addition & 2 deletions cairo/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,4 @@ system-deps = "7"

[package.metadata.docs.rs]
all-features = true
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
rustdoc-args = ["--generate-link-to-definition"]
14 changes: 6 additions & 8 deletions cairo/sys/build.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#[cfg(not(docsrs))]
use std::process;

#[cfg(docsrs)]
fn main() {} // prevent linking libraries to avoid documentation failure

#[cfg(not(docsrs))]
fn main() {
if std::env::var("DOCS_RS").is_ok() {
// prevent linking libraries to avoid documentation failure
return;
}

if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={s}");
process::exit(1);
std::process::exit(1);
}
}
3 changes: 1 addition & 2 deletions gdk-pixbuf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ gir-format-check.workspace = true

[package.metadata.docs.rs]
all-features = true
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
rustdoc-args = ["--generate-link-to-definition"]
2 changes: 1 addition & 1 deletion gdk-pixbuf/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 697875997360)
Generated by gir (https://github.com/gtk-rs/gir @ 3ddfba1db34e)
from gir-files (https://github.com/gtk-rs/gir-files @ 1490bcc19dc8)
3 changes: 1 addition & 2 deletions gdk-pixbuf/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,5 @@ version = "2.42"
version = "2.43"

[package.metadata.docs.rs]
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
rustdoc-args = ["--generate-link-to-definition"]
all-features = true
14 changes: 6 additions & 8 deletions gdk-pixbuf/sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

#[cfg(not(docsrs))]
use std::process;

#[cfg(docsrs)]
fn main() {} // prevent linking libraries to avoid documentation failure

#[cfg(not(docsrs))]
fn main() {
if std::env::var("DOCS_RS").is_ok() {
// prevent linking libraries to avoid documentation failure
return;
}

if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={s}");
process::exit(1);
std::process::exit(1);
}
}
2 changes: 1 addition & 1 deletion gdk-pixbuf/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 697875997360)
Generated by gir (https://github.com/gtk-rs/gir @ 3ddfba1db34e)
from gir-files (https://github.com/gtk-rs/gir-files @ 1490bcc19dc8)
4 changes: 1 addition & 3 deletions gio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ keywords = ["glib", "gio", "gtk-rs", "gnome"]
readme = "README.md"
documentation = "https://gtk-rs.org/gtk-rs-core/stable/latest/docs/gio/"
description = "Rust bindings for the Gio library"
build = "build.rs"
authors.workspace = true
edition.workspace = true
exclude.workspace = true
Expand Down Expand Up @@ -54,5 +53,4 @@ serial_test = "3"

[package.metadata.docs.rs]
all-features = true
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
rustdoc-args = ["--generate-link-to-definition"]
3 changes: 0 additions & 3 deletions gio/build.rs

This file was deleted.

2 changes: 1 addition & 1 deletion gio/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 697875997360)
Generated by gir (https://github.com/gtk-rs/gir @ 3ddfba1db34e)
from gir-files (https://github.com/gtk-rs/gir-files @ 1490bcc19dc8)
Loading
Loading