Remove version constants to fix build with different libostree versions

This commit is contained in:
Felix Krull authored and Colin Walters committed 2022-05-06 12:53:53 -04:00
1 parent 16709027e1
commit 57645e91cb
8 files changed
+11 -17

No files matched your search

+1 -1
View File
@@ -49,6 +49,6 @@ license = "MIT"
links = "ostree-1"
name = "libostree-sys"
repository = "https://gitlab.com/fkrull/ostree-rs"
version = "0.1.5"
version = "0.2.0"
[package.metadata.docs.rs]
features = ["dox"]
-4
View File
@@ -127,7 +127,6 @@ pub const OSTREE_FILEMETA_GVARIANT_STRING: *const c_char = b"(uuua(ayay))\0" as
pub const OSTREE_MAX_METADATA_SIZE: c_int = 10485760;
pub const OSTREE_MAX_METADATA_WARN_SIZE: c_int = 7340032;
pub const OSTREE_ORIGIN_TRANSIENT_GROUP: *const c_char = b"libostree-transient\0" as *const u8 as *const c_char;
pub const OSTREE_RELEASE_VERSION: c_int = 8;
pub const OSTREE_REPO_METADATA_REF: *const c_char = b"ostree-metadata\0" as *const u8 as *const c_char;
pub const OSTREE_SHA256_DIGEST_LEN: c_int = 32;
pub const OSTREE_SHA256_STRING_LEN: c_int = 64;
@@ -135,9 +134,6 @@ pub const OSTREE_SUMMARY_GVARIANT_STRING: *const c_char = b"(a(s(taya{sv}))a{sv}
pub const OSTREE_SUMMARY_SIG_GVARIANT_STRING: *const c_char = b"a{sv}\0" as *const u8 as *const c_char;
pub const OSTREE_TIMESTAMP: c_int = 0;
pub const OSTREE_TREE_GVARIANT_STRING: *const c_char = b"(a(say)a(sayay))\0" as *const u8 as *const c_char;
pub const OSTREE_VERSION: c_double = 2018.800000;
pub const OSTREE_VERSION_S: *const c_char = b"2018.8\0" as *const u8 as *const c_char;
pub const OSTREE_YEAR_VERSION: c_int = 2018;
// Flags
pub type OstreeChecksumFlags = c_uint;
-4
View File
@@ -324,7 +324,6 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("OSTREE_OBJECT_TYPE_PAYLOAD_LINK", "7"),
("OSTREE_OBJECT_TYPE_TOMBSTONE_COMMIT", "5"),
("OSTREE_ORIGIN_TRANSIENT_GROUP", "libostree-transient"),
("OSTREE_RELEASE_VERSION", "8"),
("OSTREE_REPO_CHECKOUT_FILTER_ALLOW", "0"),
("OSTREE_REPO_CHECKOUT_FILTER_SKIP", "1"),
("OSTREE_REPO_CHECKOUT_MODE_NONE", "0"),
@@ -397,9 +396,6 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_SYNTHETIC", "2"),
("OSTREE_TIMESTAMP", "0"),
("OSTREE_TREE_GVARIANT_STRING", "(a(say)a(sayay))"),
("OSTREE_VERSION", "2018.800000"),
("OSTREE_VERSION_S", "2018.8"),
("OSTREE_YEAR_VERSION", "2018"),
];