Skip to content

Commit

Permalink
rust: Update to glib 0.20
Browse files Browse the repository at this point in the history
Since we're releasing a new version of our crates,
let's update to the latest.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Feb 1, 2025
1 parent b89f209 commit b4ae168
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ members = [".", "rust-bindings/sys"]
base64 = "0.20.0"
bitflags = "1.2.1"
ffi = { package = "ostree-sys", path = "rust-bindings/sys", version = "0.15.0" }
gio = "0.18"
glib = "0.18"
gio = "0.20"
glib = "0.20"
hex = "0.4.2"
libc = "0.2"
once_cell = "1.4.0"
Expand Down
2 changes: 1 addition & 1 deletion rust-bindings/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIR_REPO := https://github.com/gtk-rs/gir.git
GIR_VERSION := 5433e2582f831d551789ee95fa04188d2a5fd3e5 # 0.20.4
GIR_FILES_VERSION := 0.19.0
GIR_FILES_VERSION := 0.20.0
OSTREE_REPO := ../ostree
OSTREE_VERSION := patch-v2022.2
RUSTDOC_STRIPPER_VERSION := 0.1.17
Expand Down
2 changes: 2 additions & 0 deletions rust-bindings/src/auto/repo.rs

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

2 changes: 1 addition & 1 deletion rust-bindings/src/auto/versions.txt

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

3 changes: 2 additions & 1 deletion rust-bindings/src/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ use crate::RepoMode;
use crate::{Checksum, ObjectDetails, ObjectName, ObjectType, Repo, RepoTransactionStats};
use ffi::OstreeRepoListObjectsFlags;
use glib::ffi as glib_sys;
use glib::{self, translate::*, Error, IsA};
use glib::prelude::*;
use glib::{self, translate::*, Error};
#[cfg(any(feature = "v2017_10", feature = "dox"))]
use std::os::fd::BorrowedFd;
use std::{
Expand Down
12 changes: 8 additions & 4 deletions rust-bindings/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ system-deps = "7"
libc = "0.2"

[dependencies.gio-sys]
version = "0.18"
version = "0.20"

[dependencies.glib-sys]
version = "0.18"
version = "0.20"

[dependencies.gobject-sys]
version = "0.18"
version = "0.20"

[dev-dependencies]
shell-words = "1.0.0"
Expand Down Expand Up @@ -68,7 +68,8 @@ v2022_7 = ["v2022_5"]
v2023_1 = ["v2022_7"]
v2023_8 = ["v2023_1"]
v2023_11 = ["v2023_8"]
v2025_1 = ["v2023_11"]
v2025_1 = ["v2024_7"]
v2024_7 = ["v2023_11"]

[lib]
name = "ostree_sys"
Expand Down Expand Up @@ -245,3 +246,6 @@ version = "2023.11"

[package.metadata.system-deps.ostree_1.v2025_1]
version = "2025.1"

[package.metadata.system-deps.ostree_1.v2024_7]
version = "2024.7"
2 changes: 1 addition & 1 deletion rust-bindings/sys/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 @ 5433e2582f83)
from gir-files (@ 533c8b9281ba)
from gir-files (@ b89f209a09cf)
2 changes: 2 additions & 0 deletions rust-bindings/sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1854,6 +1854,8 @@ extern "C" {
cancellable: *mut gio::GCancellable,
error: *mut *mut glib::GError,
) -> gboolean;
#[cfg(feature = "v2024_7")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2024_7")))]
pub fn ostree_repo_checkout_composefs(
self_: *mut OstreeRepo,
options: *mut glib::GVariant,
Expand Down

0 comments on commit b4ae168

Please sign in to comment.