Update to new glib-rs versions

This commit is contained in:
Felix Krull 2019-06-28 20:28:21 +02:00 committed by Colin Walters
parent 5b6991af9c
commit 2c07302097
5 changed files with 21 additions and 14 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "ostree" name = "ostree"
version = "0.4.0" version = "0.5.0"
authors = ["Felix Krull"] authors = ["Felix Krull"]
license = "MIT" license = "MIT"
@ -32,12 +32,12 @@ name = "ostree"
libc = "0.2" libc = "0.2"
bitflags = "1" bitflags = "1"
lazy_static = "1.1" lazy_static = "1.1"
glib = "0.7.1" glib = "0.8.0"
gio = "0.6.0" gio = "0.7.0"
glib-sys = "0.8.0" glib-sys = "0.9.0"
gobject-sys = "0.8.0" gobject-sys = "0.9.0"
gio-sys = "0.8.0" gio-sys = "0.9.0"
ostree-sys = { version = "0.3.0", path = "sys" } ostree-sys = { version = "0.4.0", path = "sys" }
[dev-dependencies] [dev-dependencies]
maplit = "1.0.1" maplit = "1.0.1"

View File

@ -31,7 +31,7 @@ To use the crate, add it to your `Cargo.toml`:
```toml ```toml
[dependencies] [dependencies]
ostree = "0.4" ostree = "0.5"
``` ```
To use features from later libostree versions, you need to specify the release To use features from later libostree versions, you need to specify the release
@ -39,7 +39,7 @@ version as well:
```toml ```toml
[dependencies.ostree] [dependencies.ostree]
version = "0.4" version = "0.5"
features = ["v2018_7"] features = ["v2018_7"]
``` ```

View File

@ -48,7 +48,6 @@ generate = [
"OSTree.RepoPullFlags", "OSTree.RepoPullFlags",
"OSTree.RepoRemoteChange", "OSTree.RepoRemoteChange",
"OSTree.RepoResolveRevExtFlags", "OSTree.RepoResolveRevExtFlags",
"OSTree.RepoTransactionStats",
"OSTree.SePolicy", "OSTree.SePolicy",
"OSTree.SePolicyRestoreconFlags", "OSTree.SePolicyRestoreconFlags",
"OSTree.StaticDeltaGenerateOpt", "OSTree.StaticDeltaGenerateOpt",
@ -172,6 +171,12 @@ status = "generate"
name = "dup" name = "dup"
ignore = true ignore = true
[[object]]
name = "OSTree.RepoTransactionStats"
status = "generate"
init_function_expression = "|_ptr| ()"
clear_function_expression = "|_ptr| ()"
[[object]] [[object]]
name = "OSTree.*" name = "OSTree.*"
status = "generate" status = "generate"

View File

@ -12,6 +12,8 @@ glib_wrapper! {
match fn { match fn {
copy => |ptr| gobject_sys::g_boxed_copy(ostree_sys::ostree_repo_transaction_stats_get_type(), ptr as *mut _) as *mut ostree_sys::OstreeRepoTransactionStats, copy => |ptr| gobject_sys::g_boxed_copy(ostree_sys::ostree_repo_transaction_stats_get_type(), ptr as *mut _) as *mut ostree_sys::OstreeRepoTransactionStats,
free => |ptr| gobject_sys::g_boxed_free(ostree_sys::ostree_repo_transaction_stats_get_type(), ptr as *mut _), free => |ptr| gobject_sys::g_boxed_free(ostree_sys::ostree_repo_transaction_stats_get_type(), ptr as *mut _),
init => |_ptr| (),
clear => |_ptr| (),
get_type => || ostree_sys::ostree_repo_transaction_stats_get_type(), get_type => || ostree_sys::ostree_repo_transaction_stats_get_type(),
} }
} }

View File

@ -5,9 +5,9 @@ repository = "fkrull/ostree-rs"
pkg-config = "0.3.7" pkg-config = "0.3.7"
[dependencies] [dependencies]
gio-sys = "0.8.0" gio-sys = "0.9.0"
glib-sys = "0.8.0" glib-sys = "0.9.0"
gobject-sys = "0.8.0" gobject-sys = "0.9.0"
libc = "0.2" libc = "0.2"
[dev-dependencies] [dev-dependencies]
@ -59,6 +59,6 @@ license = "MIT"
links = "ostree-1" links = "ostree-1"
name = "ostree-sys" name = "ostree-sys"
repository = "https://gitlab.com/fkrull/ostree-rs" repository = "https://gitlab.com/fkrull/ostree-rs"
version = "0.3.0" version = "0.4.0"
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] features = ["dox"]