From f2f7b6ffec7bf657966353c850d25c6ab218ff7c Mon Sep 17 00:00:00 2001 From: Vika Date: Tue, 22 Oct 2024 21:52:10 +0300 Subject: vendor libsecret The libsecret-rs crate is unmaintained, so I'm vendoring it for now. Bumping the glib version turned out to be enough. The exact process I used was: 1. Cloning the repository 2. Making changes 3. `cargo build` to ensure it works 4. `cargo package --no-verify` (b/c it tries to build all crates separately instead of the entire workspace as a whole) 5. `mkdir libsecret/sys -p` 6. `tar --strip-components 1 -C libsecret -xvf ../libsecret-rs/target/package/libsecret-0.6.0.crate` 7. `tar --strip-components 1 -C libsecret/sys -xvf ../libsecret-rs/target/package/libsecret-sys-0.6.0.crate` Then `Cargo.toml` is modified to ensure the libsecret and its `-sys` crate build out of my vendored sources. In the future, if I gain maintainership of the `libsecret` crate, I could just revert this commit to make it point back to the upstream. --- Cargo.lock | 199 +++++++++++++++++-------------------------------------------- 1 file changed, 54 insertions(+), 145 deletions(-) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index 4d6c133..57e9bbb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -116,8 +116,8 @@ version = "1.0.0" dependencies = [ "futures", "gettext-rs", - "gio 0.20.4", - "glib 0.20.4", + "gio", + "glib", "gtk4", "kittybox-indieauth", "kittybox-util", @@ -163,7 +163,7 @@ checksum = "e8a0ea147c94108c9613235388f540e4d14c327f7081c9e471fc8ee8a2533e69" dependencies = [ "bitflags", "cairo-sys-rs", - "glib 0.20.4", + "glib", "libc", ] @@ -173,7 +173,7 @@ version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "428290f914b9b86089f60f5d8a9f6e440508e1bcff23b25afd51502b0a2da88f" dependencies = [ - "glib-sys 0.20.4", + "glib-sys", "libc", "system-deps 7.0.3", ] @@ -439,8 +439,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4c29071a9e92337d8270a85cb0510cda4ac478be26d09ad027cc1d081911b19" dependencies = [ "gdk-pixbuf-sys", - "gio 0.20.4", - "glib 0.20.4", + "gio", + "glib", "libc", ] @@ -450,9 +450,9 @@ version = "0.20.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "687343b059b91df5f3fbd87b4307038fa9e647fcc0461d0d3f93e94fee20bf3d" dependencies = [ - "gio-sys 0.20.4", - "glib-sys 0.20.4", - "gobject-sys 0.20.4", + "gio-sys", + "glib-sys", + "gobject-sys", "libc", "system-deps 7.0.3", ] @@ -466,8 +466,8 @@ dependencies = [ "cairo-rs", "gdk-pixbuf", "gdk4-sys", - "gio 0.20.4", - "glib 0.20.4", + "gio", + "glib", "libc", "pango", ] @@ -480,9 +480,9 @@ checksum = "7d3c03d1ea9d5199f14f060890fde68a3b5ec5699144773d1fa6abf337bfbc9c" dependencies = [ "cairo-sys-rs", "gdk-pixbuf-sys", - "gio-sys 0.20.4", - "glib-sys 0.20.4", - "gobject-sys 0.20.4", + "gio-sys", + "glib-sys", + "gobject-sys", "libc", "pango-sys", "pkg-config", @@ -538,24 +538,6 @@ version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" -[[package]] -name = "gio" -version = "0.19.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c49f117d373ffcc98a35d114db5478bc223341cff53e39a5d6feced9e2ddffe" -dependencies = [ - "futures-channel", - "futures-core", - "futures-io", - "futures-util", - "gio-sys 0.19.8", - "glib 0.19.9", - "libc", - "pin-project-lite", - "smallvec", - "thiserror", -] - [[package]] name = "gio" version = "0.20.4" @@ -566,61 +548,26 @@ dependencies = [ "futures-core", "futures-io", "futures-util", - "gio-sys 0.20.4", - "glib 0.20.4", + "gio-sys", + "glib", "libc", "pin-project-lite", "smallvec", ] -[[package]] -name = "gio-sys" -version = "0.19.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cd743ba4714d671ad6b6234e8ab2a13b42304d0e13ab7eba1dcdd78a7d6d4ef" -dependencies = [ - "glib-sys 0.19.8", - "gobject-sys 0.19.8", - "libc", - "system-deps 6.2.2", - "windows-sys 0.52.0", -] - [[package]] name = "gio-sys" version = "0.20.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4f7efc368de04755344f0084104835b6bb71df2c1d41e37d863947392a894779" dependencies = [ - "glib-sys 0.20.4", - "gobject-sys 0.20.4", + "glib-sys", + "gobject-sys", "libc", "system-deps 7.0.3", "windows-sys 0.52.0", ] -[[package]] -name = "glib" -version = "0.19.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39650279f135469465018daae0ba53357942a5212137515777d5fdca74984a44" -dependencies = [ - "bitflags", - "futures-channel", - "futures-core", - "futures-executor", - "futures-task", - "futures-util", - "gio-sys 0.19.8", - "glib-macros 0.19.9", - "glib-sys 0.19.8", - "gobject-sys 0.19.8", - "libc", - "memchr", - "smallvec", - "thiserror", -] - [[package]] name = "glib" version = "0.20.4" @@ -633,29 +580,16 @@ dependencies = [ "futures-executor", "futures-task", "futures-util", - "gio-sys 0.20.4", - "glib-macros 0.20.4", - "glib-sys 0.20.4", - "gobject-sys 0.20.4", + "gio-sys", + "glib-macros", + "glib-sys", + "gobject-sys", "libc", "log", "memchr", "smallvec", ] -[[package]] -name = "glib-macros" -version = "0.19.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4429b0277a14ae9751350ad9b658b1be0abb5b54faa5bcdf6e74a3372582fad7" -dependencies = [ - "heck", - "proc-macro-crate", - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "glib-macros" version = "0.20.4" @@ -669,16 +603,6 @@ dependencies = [ "syn", ] -[[package]] -name = "glib-sys" -version = "0.19.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c2dc18d3a82b0006d470b13304fbbb3e0a9bd4884cf985a60a7ed733ac2c4a5" -dependencies = [ - "libc", - "system-deps 6.2.2", -] - [[package]] name = "glib-sys" version = "0.20.4" @@ -689,24 +613,13 @@ dependencies = [ "system-deps 7.0.3", ] -[[package]] -name = "gobject-sys" -version = "0.19.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e697e252d6e0416fd1d9e169bda51c0f1c926026c39ca21fbe8b1bb5c3b8b9e" -dependencies = [ - "glib-sys 0.19.8", - "libc", - "system-deps 6.2.2", -] - [[package]] name = "gobject-sys" version = "0.20.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4c674d2ff8478cf0ec29d2be730ed779fef54415a2fb4b565c52def62696462" dependencies = [ - "glib-sys 0.20.4", + "glib-sys", "libc", "system-deps 7.0.3", ] @@ -717,7 +630,7 @@ version = "0.20.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f53144c7fe78292705ff23935f1477d511366fb2f73c43d63b37be89076d2fe" dependencies = [ - "glib 0.20.4", + "glib", "graphene-sys", "libc", ] @@ -728,7 +641,7 @@ version = "0.20.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e741797dc5081e59877a4d72c442c72d61efdd99161a0b1c1b29b6b988934b99" dependencies = [ - "glib-sys 0.20.4", + "glib-sys", "libc", "pkg-config", "system-deps 7.0.3", @@ -742,7 +655,7 @@ checksum = "aa21a2f7c51ee1c6cc1242c2faf3aae2b7566138f182696759987bde8219e922" dependencies = [ "cairo-rs", "gdk4", - "glib 0.20.4", + "glib", "graphene-rs", "gsk4-sys", "libc", @@ -757,8 +670,8 @@ checksum = "0f9fb607554f9f4e8829eb7ea301b0fde051e1dbfd5d16b143a8a9c2fac6c01b" dependencies = [ "cairo-sys-rs", "gdk4-sys", - "glib-sys 0.20.4", - "gobject-sys 0.20.4", + "glib-sys", + "gobject-sys", "graphene-sys", "libc", "pango-sys", @@ -776,8 +689,8 @@ dependencies = [ "futures-channel", "gdk-pixbuf", "gdk4", - "gio 0.20.4", - "glib 0.20.4", + "gio", + "glib", "graphene-rs", "gsk4", "gtk4-macros", @@ -807,9 +720,9 @@ dependencies = [ "cairo-sys-rs", "gdk-pixbuf-sys", "gdk4-sys", - "gio-sys 0.20.4", - "glib-sys 0.20.4", - "gobject-sys 0.20.4", + "gio-sys", + "glib-sys", + "gobject-sys", "graphene-sys", "gsk4-sys", "libc", @@ -955,8 +868,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2ff9c222b5c783729de45185f07b2fec2d43a7f9c63961e777d3667e20443878" dependencies = [ "gdk4", - "gio 0.20.4", - "glib 0.20.4", + "gio", + "glib", "gtk4", "libadwaita-sys", "libc", @@ -970,9 +883,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1c44d8bdbad31d6639e1f20cc9c1424f1a8e02d751fc28d44659bf743fb9eca6" dependencies = [ "gdk4-sys", - "gio-sys 0.20.4", - "glib-sys 0.20.4", - "gobject-sys 0.20.4", + "gio-sys", + "glib-sys", + "gobject-sys", "gtk4-sys", "libc", "pango-sys", @@ -987,25 +900,21 @@ checksum = "8e9489c2807c139ffd9c1794f4af0ebe86a828db53ecdc7fea2111d0fed085d1" [[package]] name = "libsecret" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50c6ccddc706a38eca477b4d7857acd6c76c7d6fba5d47b4b2e7d800e5a17194" +version = "0.6.0" dependencies = [ - "gio 0.19.8", - "glib 0.19.9", + "gio", + "glib", "libc", "libsecret-sys", ] [[package]] name = "libsecret-sys" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a1af48e61f1c8e77e9705296f346e45b637754a92348a79b4c62df84d0654c2" +version = "0.6.0" dependencies = [ - "gio-sys 0.19.8", - "glib-sys 0.19.8", - "gobject-sys 0.19.8", + "gio-sys", + "glib-sys", + "gobject-sys", "libc", "pkg-config", "system-deps 6.2.2", @@ -1222,8 +1131,8 @@ version = "0.20.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aa26aa54b11094d72141a754901cd71d9356432bb8147f9cace8d9c7ba95f356" dependencies = [ - "gio 0.20.4", - "glib 0.20.4", + "gio", + "glib", "libc", "pango-sys", ] @@ -1234,8 +1143,8 @@ version = "0.20.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "84fd65917bf12f06544ae2bbc200abf9fc0a513a5a88a0fa81013893aef2b838" dependencies = [ - "glib-sys 0.20.4", - "gobject-sys 0.20.4", + "glib-sys", + "gobject-sys", "libc", "system-deps 7.0.3", ] @@ -1649,8 +1558,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b84ccd1f4aee0854a16b0b489ba843798e2eb4cdcddd4a61248f7db9ce8b6df1" dependencies = [ "futures-channel", - "gio 0.20.4", - "glib 0.20.4", + "gio", + "glib", "libc", "soup3-sys", ] @@ -1661,9 +1570,9 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8869997193d52a61a1db48627bdaa57343f76e2c5132ee6d351245a6ab30631e" dependencies = [ - "gio-sys 0.20.4", - "glib-sys 0.20.4", - "gobject-sys 0.20.4", + "gio-sys", + "glib-sys", + "gobject-sys", "libc", "system-deps 7.0.3", ] -- cgit 1.4.1