From 98f241520a26a422f60ac2023b38cf6ad4409bb9 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Thu, 25 Jan 2024 23:06:39 +0100 Subject: [PATCH] Use cargo workspace features --- Cargo.lock | 199 +++++++++++++++++------------------- Cargo.toml | 29 ++++++ cairo/Cargo.toml | 28 +++-- cairo/sys/Cargo.toml | 21 ++-- examples/Cargo.toml | 16 ++- gdk-pixbuf/Cargo.toml | 33 +++--- gdk-pixbuf/sys/Cargo.toml | 31 ++++-- gio/Cargo.toml | 33 +++--- gio/sys/Cargo.toml | 31 ++++-- glib-build-tools/Cargo.toml | 17 +-- glib-macros/Cargo.toml | 19 ++-- glib/Cargo.toml | 35 +++---- glib/gobject-sys/Cargo.toml | 31 ++++-- glib/sys/Cargo.toml | 33 ++++-- graphene/Cargo.toml | 29 ++---- graphene/sys/Cargo.toml | 31 ++++-- pango/Cargo.toml | 33 +++--- pango/sys/Cargo.toml | 31 ++++-- pangocairo/Cargo.toml | 33 +++--- pangocairo/sys/Cargo.toml | 31 ++++-- 20 files changed, 416 insertions(+), 328 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 70d12d3cc145..e7bedd715947 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -45,15 +45,15 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "base64" -version = "0.21.5" +version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35636a1494ede3b646cc98f74f8e62c773a38a659ebc777a2cf26b9b74171df9" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" [[package]] name = "basic-toml" -version = "0.1.7" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f2139706359229bfa8f19142ac1155b4b80beafb7a60471ac5dd109d4a19778" +checksum = "2db21524cad41c5591204d22d75e1970a2d1f71060214ca931dc7d5afe2c14e5" dependencies = [ "serde", ] @@ -119,9 +119,9 @@ dependencies = [ [[package]] name = "cfg-expr" -version = "0.15.5" +version = "0.15.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03915af431787e6ffdcc74c645077518c6b6e01f80b761e0fbbfa288536311b3" +checksum = "6100bc57b6209840798d95cb2775684849d332f7bd788db2a8c8caf7ef82a41a" dependencies = [ "smallvec", "target-lexicon", @@ -135,9 +135,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "ciborium" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "effd91f6c78e5a4ace8a5d3c0b6bfaec9e2baaef55f3efc00e45fb2e477ee926" +checksum = "42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e" dependencies = [ "ciborium-io", "ciborium-ll", @@ -146,15 +146,15 @@ dependencies = [ [[package]] name = "ciborium-io" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdf919175532b369853f5d5e20b26b43112613fd6fe7aee757e35f7a44642656" +checksum = "05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757" [[package]] name = "ciborium-ll" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "defaa24ecc093c77630e6c15e17c51f5e187bf35ee514f4e2d67baaa96dae22b" +checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9" dependencies = [ "ciborium-io", "half", @@ -162,18 +162,18 @@ dependencies = [ [[package]] name = "clap" -version = "4.4.8" +version = "4.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2275f18819641850fa26c89acc84d465c1bf91ce57bc2748b28c420473352f64" +checksum = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c" dependencies = [ "clap_builder", ] [[package]] name = "clap_builder" -version = "4.4.8" +version = "4.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07cdf1b148b25c1e1f7a42225e30a0d99a615cd4637eae7365548dd4529b95bc" +checksum = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7" dependencies = [ "anstyle", "clap_lex", @@ -223,36 +223,34 @@ dependencies = [ [[package]] name = "crossbeam-deque" -version = "0.8.3" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef" +checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" dependencies = [ - "cfg-if", "crossbeam-epoch", "crossbeam-utils", ] [[package]] name = "crossbeam-epoch" -version = "0.9.15" +version = "0.9.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" dependencies = [ - "autocfg", - "cfg-if", "crossbeam-utils", - "memoffset", - "scopeguard", ] [[package]] name = "crossbeam-utils" -version = "0.8.16" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294" -dependencies = [ - "cfg-if", -] +checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" + +[[package]] +name = "crunchy" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" [[package]] name = "dashmap" @@ -439,9 +437,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.11" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f" +checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" dependencies = [ "cfg-if", "libc", @@ -585,7 +583,7 @@ dependencies = [ [[package]] name = "gtk-rs-examples" -version = "0.0.1" +version = "0.19.0" dependencies = [ "async-tls", "futures", @@ -598,15 +596,19 @@ dependencies = [ [[package]] name = "half" -version = "1.8.2" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7" +checksum = "bc52e53916c08643f1b56ec082790d1e86a32e58dc5268f897f313fbae7b4872" +dependencies = [ + "cfg-if", + "crunchy", +] [[package]] name = "hashbrown" -version = "0.14.2" +version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f93e7192158dbcda357bdec5fb5788eebf8bbac027f3f33e719d29135ae84156" +checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" [[package]] name = "heck" @@ -616,9 +618,9 @@ checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" [[package]] name = "hermit-abi" -version = "0.3.3" +version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7" +checksum = "5d3d0e0f38255e7fa3cf31335b3a56f05febd18025f4db5ef7a0cfb4f8da651f" [[package]] name = "indexmap" @@ -632,13 +634,13 @@ dependencies = [ [[package]] name = "is-terminal" -version = "0.4.9" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" +checksum = "0bad00257d07be169d870ab665980b06cdb366d792ad690bf2e76876dc503455" dependencies = [ "hermit-abi", "rustix", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -652,15 +654,15 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" +checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" [[package]] name = "js-sys" -version = "0.3.65" +version = "0.3.67" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54c0c35952f67de54bb584e9fd912b3023117cbafc0a77d8f3dee1fb5f572fe8" +checksum = "9a1d36f1235bc969acba30b7f5990b864423a6068a10f7c90ae8f0112e3a59d1" dependencies = [ "wasm-bindgen", ] @@ -679,9 +681,9 @@ checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7" [[package]] name = "linux-raw-sys" -version = "0.4.11" +version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "969488b55f8ac402214f3f5fd243ebb7206cf82de60d3172994707a4bcc2b829" +checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" [[package]] name = "lock_api" @@ -705,15 +707,6 @@ version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" -[[package]] -name = "memoffset" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c" -dependencies = [ - "autocfg", -] - [[package]] name = "num-traits" version = "0.2.17" @@ -864,9 +857,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.76" +version = "1.0.78" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95fc56cda0b5c3325f5fbbd7ff9fda9e02bb00bb3dac51252d2f1bfa1cb8cc8c" +checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" dependencies = [ "unicode-ident", ] @@ -882,9 +875,9 @@ dependencies = [ [[package]] name = "rayon" -version = "1.8.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c27db03db7734835b3f53954b534c91069375ce6ccaa2e065441e07d9b6cdb1" +checksum = "fa7237101a77a10773db45d62004a272517633fbcc3df19d96455ede1122e051" dependencies = [ "either", "rayon-core", @@ -892,9 +885,9 @@ dependencies = [ [[package]] name = "rayon-core" -version = "1.12.0" +version = "1.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ce3fb6ad83f861aac485e76e1985cd109d9a3713802152be56c3b1f0e0658ed" +checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" dependencies = [ "crossbeam-deque", "crossbeam-utils", @@ -911,9 +904,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.2" +version = "1.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343" +checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15" dependencies = [ "aho-corasick", "memchr", @@ -923,9 +916,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.3" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f" +checksum = "5bb987efffd3c6d0d8f5f89510bb458559eab11e4f869acb20bf845e016259cd" dependencies = [ "aho-corasick", "memchr", @@ -955,9 +948,9 @@ dependencies = [ [[package]] name = "ring" -version = "0.17.5" +version = "0.17.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb0205304757e5d899b9c2e448b867ffd03ae7f988002e47cd24954391394d0b" +checksum = "688c63d65483050968b2a8937f7995f443e27041a0f7700aa59b0822aedebb74" dependencies = [ "cc", "getrandom", @@ -969,9 +962,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.28" +version = "0.38.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72e572a5e8ca657d7366229cdde4bd14c4eb5499a9573d4d366fe1b599daa316" +checksum = "322394588aaf33c24007e8bb3238ee3e4c5c09c084ab32bc73890b99ff326bca" dependencies = [ "bitflags 2.4.2", "errno", @@ -1003,9 +996,9 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.15" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" +checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" [[package]] name = "same-file" @@ -1028,24 +1021,24 @@ version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" dependencies = [ - "ring 0.17.5", + "ring 0.17.7", "untrusted 0.9.0", ] [[package]] name = "serde" -version = "1.0.192" +version = "1.0.195" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bca2a08484b285dcb282d0f67b26cadc0df8b19f8c12502c13d966bf9482f001" +checksum = "63261df402c67811e9ac6def069e4786148c4563f4b50fd4bf30aa370d626b02" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.192" +version = "1.0.195" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6c7207fbec9faa48073f3e3074cbe553af6ea512d7c21ba46e434e70ea9fbc1" +checksum = "46fe8f8603d81ba86327b23a2e9cdf49e1255fb94a4c5f297f6ee0547178ea2c" dependencies = [ "proc-macro2", "quote", @@ -1054,9 +1047,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.108" +version = "1.0.111" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b" +checksum = "176e46fa42316f18edd598015a5166857fc835ec732f5215eac6b7bdbf0a84f4" dependencies = [ "itoa", "ryu", @@ -1065,9 +1058,9 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "0.6.4" +version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12022b835073e5b11e90a14f86838ceb1c8fb0325b72416845c487ac0fa95e80" +checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1" dependencies = [ "serde", ] @@ -1114,9 +1107,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.12.0" +version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2593d31f82ead8df961d8bd23a64c2ccf2eb5dd34b0a34bfb4dd54011c72009e" +checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7" [[package]] name = "spin" @@ -1156,9 +1149,9 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.12.12" +version = "0.12.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c39fd04924ca3a864207c66fc2cd7d22d7c016007f9ce846cbb9326331930a" +checksum = "69758bda2e78f098e4ccb393021a0963bb3442eac05f135c30f61b7370bbafae" [[package]] name = "tempfile" @@ -1175,9 +1168,9 @@ dependencies = [ [[package]] name = "termcolor" -version = "1.4.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff1bc3d3f05aff0403e8ac0d92ced918ec05b666a43f83297ccef5bea8a3d449" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" dependencies = [ "winapi-util", ] @@ -1303,9 +1296,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.88" +version = "0.2.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7daec296f25a1bae309c0cd5c29c4b260e510e6d813c286b19eaadf409d40fce" +checksum = "b1223296a201415c7fad14792dbefaace9bd52b62d33453ade1c5b5f07555406" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -1313,9 +1306,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.88" +version = "0.2.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e397f4664c0e4e428e8313a469aaa58310d302159845980fd23b0f22a847f217" +checksum = "fcdc935b63408d58a32f8cc9738a0bffd8f05cc7c002086c6ef20b7312ad9dcd" dependencies = [ "bumpalo", "log", @@ -1328,9 +1321,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.88" +version = "0.2.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5961017b3b08ad5f3fe39f1e79877f8ee7c23c5e5fd5eb80de95abc41f1f16b2" +checksum = "3e4c238561b2d428924c49815533a8b9121c664599558a5d9ec51f8a1740a999" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -1338,9 +1331,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.88" +version = "0.2.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5353b8dab669f5e10f5bd76df26a9360c748f054f862ff5f3f8aae0c7fb3907" +checksum = "bae1abb6806dc1ad9e560ed242107c0f6c84335f1749dd4e8ddb012ebd5e25a7" dependencies = [ "proc-macro2", "quote", @@ -1351,15 +1344,15 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.88" +version = "0.2.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d046c5d029ba91a1ed14da14dca44b68bf2f124cfbaf741c54151fdb3e0750b" +checksum = "4d91413b1c31d7539ba5ef2451af3f0b833a005eb27a631cec32bc0635a8602b" [[package]] name = "web-sys" -version = "0.3.65" +version = "0.3.67" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5db499c5f66323272151db0e666cd34f78617522fb0c1604d31a27c50c206a85" +checksum = "58cd2333b6e0be7a39605f0e255892fd7418a682d8da8fe042fe25128794d2ed" dependencies = [ "js-sys", "wasm-bindgen", @@ -1371,7 +1364,7 @@ version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed63aea5ce73d0ff405984102c42de94fc55a6b75765d621c65262469b3c9b53" dependencies = [ - "ring 0.17.5", + "ring 0.17.7", "untrusted 0.9.0", ] @@ -1549,9 +1542,9 @@ checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" [[package]] name = "winnow" -version = "0.5.19" +version = "0.5.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "829846f3e3db426d4cee4510841b71a8e58aa2a76b1132579487ae430ccd9c7b" +checksum = "b7cf47b659b318dccbd69cc4797a39ae128f533dce7902a1096044d1967b9c16" dependencies = [ "memchr", ] diff --git a/Cargo.toml b/Cargo.toml index 631792a916c7..0c01934d9fb9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,3 +23,32 @@ members = [ ] exclude = ["gir", "checker"] + +[workspace.package] +homepage = "https://gtk-rs.org/" +authors = ["The gtk-rs Project Developers"] +version = "0.19.0" +repository = "https://github.com/gtk-rs/gtk-rs-core" +license = "MIT" +exclude = [ + "gir-files/*", +] +edition = "2021" +rust-version = "1.70" + +[workspace.dependencies] +once_cell = "1.19" +libc = "0.2" +bitflags = "2.4" +thiserror = "1" +gir-format-check = "^0.1" +glib = { path = "glib" } +gio = { path = "gio" } +pango = { path = "pango" } +cairo-rs = { path = "cairo" } +glib-macros = { path = "glib-macros" } + +[workspace.metadata.docs.rs] +all-features = true +rustc-args = ["--cfg", "docsrs"] +rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] diff --git a/cairo/Cargo.toml b/cairo/Cargo.toml index cb354f94007f..8958a5ae8d84 100644 --- a/cairo/Cargo.toml +++ b/cairo/Cargo.toml @@ -1,16 +1,17 @@ [package] name = "cairo-rs" -license = "MIT" -homepage = "https://gtk-rs.org/" -authors = ["The gtk-rs Project Developers"] keywords = ["cairo", "gtk-rs", "gnome", "GUI"] readme = "README.md" documentation = "https://gtk-rs.org/gtk-rs-core/stable/latest/docs/cairo/" -version = "0.19.0" description = "Rust bindings for the Cairo library" -repository = "https://github.com/gtk-rs/gtk-rs-core" -edition = "2021" -rust-version = "1.70" +authors.workspace = true +edition.workspace = true +exclude.workspace = true +homepage.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true +version.workspace = true [lib] name = "cairo" @@ -30,21 +31,16 @@ xcb = ["ffi/xcb"] xlib = ["ffi/xlib"] win32-surface = ["ffi/win32-surface"] -[package.metadata.docs.rs] -all-features = true -rustc-args = ["--cfg", "docsrs"] -rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] - [dependencies.glib] optional = true path = "../glib" [dependencies] ffi = { package = "cairo-sys-rs", path = "sys" } -libc = "0.2" -bitflags = "2.4" -thiserror = "1.0.56" -once_cell = "1" +libc.workspace = true +bitflags.workspace = true +thiserror.workspace = true +once_cell.workspace = true freetype-rs = { version = "0.35", optional = true } [dev-dependencies] diff --git a/cairo/sys/Cargo.toml b/cairo/sys/Cargo.toml index a81978018a31..ce894b4bf413 100644 --- a/cairo/sys/Cargo.toml +++ b/cairo/sys/Cargo.toml @@ -1,15 +1,16 @@ [package] name = "cairo-sys-rs" -license = "MIT" -authors = ["The gtk-rs Project Developers"] -homepage = "https://gtk-rs.org/" description = "FFI bindings to libcairo" -version = "0.19.0" keywords = ["cairo", "ffi", "gtk-rs", "gnome"] -repository = "https://github.com/gtk-rs/gtk-rs-core" build = "build.rs" -edition = "2021" -rust-version = "1.70" +authors.workspace = true +edition.workspace = true +exclude.workspace = true +homepage.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true +version.workspace = true [package.metadata.system-deps.cairo] name = "cairo" @@ -67,9 +68,3 @@ windows-sys = { version = "0.52", features = ["Win32_Graphics_Gdi"], optional = [build-dependencies] system-deps = "6" - -[package.metadata.docs.rs] -all-features = true -rustc-args = ["--cfg", "docsrs"] -rustdoc-args = ["--cfg", "docsrs"] -features = [] diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 57565e204aa6..fe87cf32e1f0 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -1,20 +1,16 @@ [package] name = "gtk-rs-examples" -version = "0.0.1" -authors = ["The gtk-rs Project Developers"] -edition = "2021" -rust-version = "1.70" +authors.workspace = true +edition.workspace = true +rust-version.workspace = true +version.workspace = true [dependencies] futures = "0.3" futures-channel = "0.3" futures-util = "0.3" - -[dependencies.glib] -path = "../glib" - -[dependencies.gio] -path = "../gio" +glib.workspace = true +gio.workspace = true [dependencies.async-tls] version = "0.12" diff --git a/gdk-pixbuf/Cargo.toml b/gdk-pixbuf/Cargo.toml index f2a082894406..41140fdf9977 100644 --- a/gdk-pixbuf/Cargo.toml +++ b/gdk-pixbuf/Cargo.toml @@ -1,19 +1,17 @@ [package] name = "gdk-pixbuf" -license = "MIT" -homepage = "https://gtk-rs.org/" -authors = ["The gtk-rs Project Developers"] keywords = ["gdk-pixbuf", "gtk-rs", "gnome"] readme = "README.md" documentation = "https://gtk-rs.org/gtk-rs-core/stable/latest/docs/gdk_pixbuf/" -version = "0.19.0" description = "Rust bindings for the GdkPixbuf library" -repository = "https://github.com/gtk-rs/gtk-rs-core" -exclude = [ - "gir-files/*", -] -edition = "2021" -rust-version = "1.70" +authors.workspace = true +edition.workspace = true +exclude.workspace = true +homepage.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true +version.workspace = true [lib] name = "gdk_pixbuf" @@ -22,17 +20,12 @@ name = "gdk_pixbuf" v2_40 = ["ffi/v2_40"] v2_42 = ["v2_40", "ffi/v2_42"] -[package.metadata.docs.rs] -all-features = true -rustc-args = ["--cfg", "docsrs"] -rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] - [dependencies] -libc = "0.2" ffi = { package = "gdk-pixbuf-sys", path = "sys" } -glib = { path = "../glib" } -gio = { path = "../gio" } -once_cell = "1" +libc.workspace = true +glib.workspace = true +gio.workspace = true +once_cell.workspace = true [dev-dependencies] -gir-format-check = "^0.1" +gir-format-check.workspace = true diff --git a/gdk-pixbuf/sys/Cargo.toml b/gdk-pixbuf/sys/Cargo.toml index 041d0ba7b96f..c85d28999b50 100644 --- a/gdk-pixbuf/sys/Cargo.toml +++ b/gdk-pixbuf/sys/Cargo.toml @@ -28,17 +28,34 @@ v2_42 = ["v2_40"] name = "gdk_pixbuf_sys" [package] -authors = ["The gtk-rs Project Developers"] build = "build.rs" description = "FFI bindings to libgdk_pixbuf-2.0" -homepage = "https://gtk-rs.org/" keywords = ["gdk-pixbuf", "ffi", "gtk-rs", "gnome"] -license = "MIT" name = "gdk-pixbuf-sys" -repository = "https://github.com/gtk-rs/gtk-rs-core" -version = "0.19.0" -edition = "2021" -rust-version = "1.70" + +[package.authors] +workspace = true + +[package.edition] +workspace = true + +[package.exclude] +workspace = true + +[package.homepage] +workspace = true + +[package.license] +workspace = true + +[package.repository] +workspace = true + +[package.rust-version] +workspace = true + +[package.version] +workspace = true [package.metadata.system-deps.gdk_pixbuf_2_0] name = "gdk-pixbuf-2.0" diff --git a/gio/Cargo.toml b/gio/Cargo.toml index 9fbe0df329eb..f0c66256d67d 100644 --- a/gio/Cargo.toml +++ b/gio/Cargo.toml @@ -1,20 +1,18 @@ [package] name = "gio" -license = "MIT" -homepage = "https://gtk-rs.org/" -authors = ["The gtk-rs Project Developers"] keywords = ["glib", "gio", "gtk-rs", "gnome"] readme = "README.md" documentation = "https://gtk-rs.org/gtk-rs-core/stable/latest/docs/gio/" -version = "0.19.0" description = "Rust bindings for the Gio library" -repository = "https://github.com/gtk-rs/gtk-rs-core" -exclude = [ - "gir-files/*", -] -edition = "2021" -rust-version = "1.70" build = "build.rs" +authors.workspace = true +edition.workspace = true +exclude.workspace = true +homepage.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true +version.workspace = true [lib] name = "gio" @@ -33,26 +31,21 @@ v2_76 = ["v2_74", "ffi/v2_76", "glib/v2_76"] v2_78 = ["v2_76", "ffi/v2_78", "glib/v2_78"] v2_80 = ["v2_78", "ffi/v2_80", "glib/v2_80"] -[package.metadata.docs.rs] -all-features = true -rustc-args = ["--cfg", "docsrs"] -rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] - [dependencies] -libc = "0.2" -once_cell = "1.19" +libc.workspace = true +once_cell.workspace = true futures-core = { version = "0.3", default-features = false } futures-channel = "0.3" futures-io = "0.3" futures-util = { version = "0.3", default-features = false } ffi = { package = "gio-sys", path = "sys" } -glib = { path = "../glib" } -thiserror = "1" +glib.workspace = true +thiserror.workspace = true pin-project-lite = "0.2" smallvec = "1" [dev-dependencies] futures = "0.3" futures-util = { version = "0.3", features = ["io"] } -gir-format-check = "^0.1" +gir-format-check.workspace = true serial_test = "3" diff --git a/gio/sys/Cargo.toml b/gio/sys/Cargo.toml index be00c71f046e..d3e214c7fff8 100644 --- a/gio/sys/Cargo.toml +++ b/gio/sys/Cargo.toml @@ -38,17 +38,34 @@ v2_80 = ["v2_78"] name = "gio_sys" [package] -authors = ["The gtk-rs Project Developers"] build = "build.rs" description = "FFI bindings to libgio-2.0" -homepage = "https://gtk-rs.org/" keywords = ["gio", "ffi", "gtk-rs", "gnome"] -license = "MIT" name = "gio-sys" -repository = "https://github.com/gtk-rs/gtk-rs-core" -version = "0.19.0" -edition = "2021" -rust-version = "1.70" + +[package.authors] +workspace = true + +[package.edition] +workspace = true + +[package.exclude] +workspace = true + +[package.homepage] +workspace = true + +[package.license] +workspace = true + +[package.repository] +workspace = true + +[package.rust-version] +workspace = true + +[package.version] +workspace = true [package.metadata.system-deps.gio_2_0] name = "gio-2.0" diff --git a/glib-build-tools/Cargo.toml b/glib-build-tools/Cargo.toml index 311876031fdc..3ad9f77fb3d2 100644 --- a/glib-build-tools/Cargo.toml +++ b/glib-build-tools/Cargo.toml @@ -1,16 +1,17 @@ [package] name = "glib-build-tools" -license = "MIT" -homepage = "https://gtk-rs.org/" -authors = ["The gtk-rs Project Developers"] keywords = ["glib", "gio", "gtk-rs", "gnome", "build-dependencies"] readme = "README.md" documentation = "https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib_build_tools" -version = "0.19.0" description = "Rust bindings for the Gio library, build script utils crate" -repository = "https://github.com/gtk-rs/gtk-rs-core" -edition = "2021" -rust-version = "1.70" +authors.workspace = true +edition.workspace = true +exclude.workspace = true +homepage.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true +version.workspace = true [dependencies] -gio = { path = "../gio", optional = true } \ No newline at end of file +gio.workspace = true \ No newline at end of file diff --git a/glib-macros/Cargo.toml b/glib-macros/Cargo.toml index 31d8cb62468e..7babb834c58d 100644 --- a/glib-macros/Cargo.toml +++ b/glib-macros/Cargo.toml @@ -1,15 +1,16 @@ [package] name = "glib-macros" documentation = "https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib_macros/" -homepage = "https://gtk-rs.org/" -authors = ["The gtk-rs Project Developers"] description = "Rust bindings for the GLib library, proc macros crate" -version = "0.19.0" keywords = ["glib", "gtk-rs", "gnome", "GUI"] -repository = "https://github.com/gtk-rs/gtk-rs-core" -license = "MIT" -edition = "2021" -rust-version = "1.70" +authors.workspace = true +edition.workspace = true +exclude.workspace = true +homepage.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true +version.workspace = true [dependencies] heck = "0.4" @@ -22,6 +23,6 @@ proc-macro-crate = "3.1" proc-macro = true [dev-dependencies] -glib = { path = "../glib" } +glib.workspace = true trybuild2 = "1.2" -once_cell = "1.19.0" +once_cell.workspace = true diff --git a/glib/Cargo.toml b/glib/Cargo.toml index 02fcf7c9c873..6e329a8c8226 100644 --- a/glib/Cargo.toml +++ b/glib/Cargo.toml @@ -1,27 +1,25 @@ [package] name = "glib" documentation = "https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/" -homepage = "https://gtk-rs.org/" -authors = ["The gtk-rs Project Developers"] description = "Rust bindings for the GLib library" readme = "README.md" -version = "0.19.0" keywords = ["glib", "gtk-rs", "gnome", "GUI"] -repository = "https://github.com/gtk-rs/gtk-rs-core" -license = "MIT" -exclude = [ - "gir-files/*", -] -edition = "2021" -rust-version = "1.70" +authors.workspace = true +edition.workspace = true +exclude.workspace = true +homepage.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true +version.workspace = true [lib] name = "glib" [dependencies] -once_cell = "1.19" -libc = "0.2" -bitflags = "2.4" +once_cell.workspace = true +libc.workspace = true +bitflags.workspace = true futures-core = { version = "0.3", default-features = false } futures-task = { version = "0.3", default-features = false } futures-executor = "0.3" @@ -29,16 +27,16 @@ futures-channel = "0.3" futures-util = "0.3" ffi = { package = "glib-sys", path = "sys" } gobject_ffi = { package = "gobject-sys", path = "gobject-sys" } -glib-macros = { path = "../glib-macros" } +glib-macros.workspace = true rs-log = { package = "log", version = "0.4", optional = true } smallvec = { version = "1.12", features = ["union", "const_generics", "const_new"] } -thiserror = "1" +thiserror.workspace = true gio_ffi = { package = "gio-sys", path = "../gio/sys", optional = true } memchr = "2.7.1" [dev-dependencies] tempfile = "3" -gir-format-check = "^0.1" +gir-format-check.workspace = true trybuild2 = "1" criterion = "0.5.1" @@ -61,11 +59,6 @@ log_macros = ["log"] compiletests = [] gio = ["gio_ffi"] -[package.metadata.docs.rs] -all-features = true -rustc-args = ["--cfg", "docsrs"] -rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] - [[test]] name = "subclass_compiletest" required-features = ["compiletests"] diff --git a/glib/gobject-sys/Cargo.toml b/glib/gobject-sys/Cargo.toml index df1a623d1f35..4219e9eb9a78 100644 --- a/glib/gobject-sys/Cargo.toml +++ b/glib/gobject-sys/Cargo.toml @@ -28,17 +28,34 @@ v2_80 = ["v2_78"] name = "gobject_sys" [package] -authors = ["The gtk-rs Project Developers"] build = "build.rs" description = "FFI bindings to libgobject-2.0" -homepage = "https://gtk-rs.org/" keywords = ["gobject", "ffi", "gtk-rs", "gnome"] -license = "MIT" name = "gobject-sys" -repository = "https://github.com/gtk-rs/gtk-rs-core" -version = "0.19.0" -edition = "2021" -rust-version = "1.70" + +[package.authors] +workspace = true + +[package.edition] +workspace = true + +[package.exclude] +workspace = true + +[package.homepage] +workspace = true + +[package.license] +workspace = true + +[package.repository] +workspace = true + +[package.rust-version] +workspace = true + +[package.version] +workspace = true [package.metadata.system-deps.gobject_2_0] name = "gobject-2.0" diff --git a/glib/sys/Cargo.toml b/glib/sys/Cargo.toml index faa919611ff7..a0ea5cc396f3 100644 --- a/glib/sys/Cargo.toml +++ b/glib/sys/Cargo.toml @@ -26,17 +26,34 @@ v2_80 = ["v2_78"] name = "glib_sys" [package] -authors = ["The gtk-rs Project Developers"] +name = "glib-sys" build = "build.rs" description = "FFI bindings to libglib-2.0" -homepage = "https://gtk-rs.org/" keywords = ["glib", "ffi", "gtk-rs", "gnome"] -license = "MIT" -name = "glib-sys" -repository = "https://github.com/gtk-rs/gtk-rs-core" -version = "0.19.0" -edition = "2021" -rust-version = "1.70" + +[package.authors] +workspace = true + +[package.edition] +workspace = true + +[package.exclude] +workspace = true + +[package.homepage] +workspace = true + +[package.license] +workspace = true + +[package.repository] +workspace = true + +[package.rust-version] +workspace = true + +[package.version] +workspace = true [package.metadata.system-deps.glib_2_0] name = "glib-2.0" diff --git a/graphene/Cargo.toml b/graphene/Cargo.toml index 0a3527090be9..e25bbe404c08 100644 --- a/graphene/Cargo.toml +++ b/graphene/Cargo.toml @@ -1,19 +1,17 @@ [package] name = "graphene-rs" -license = "MIT" -homepage = "https://gtk-rs.org/" -authors = ["The gtk-rs Project Developers"] keywords = ["graphene", "graphene-rs", "gtk-rs", "gnome", "GUI"] readme = "README.md" documentation = "https://gtk-rs.org/gtk-rs-core/stable/latest/docs/graphene/" -version = "0.19.0" description = "Rust bindings for the Graphene library" -repository = "https://github.com/gtk-rs/gtk-rs-core" -exclude = [ - "gir-files/*", -] -edition = "2021" -rust-version = "1.70" +authors.workspace = true +edition.workspace = true +exclude.workspace = true +homepage.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true +version.workspace = true [lib] name = "graphene" @@ -21,15 +19,10 @@ name = "graphene" [features] v1_12 = ["ffi/v1_12"] -[package.metadata.docs.rs] -all-features = true -rustc-args = ["--cfg", "docsrs"] -rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] - [dependencies] -libc = "0.2" -glib = { path = "../glib" } ffi = { package = "graphene-sys", path = "sys" } +libc.workspace = true +glib.workspace = true [dev-dependencies] -gir-format-check = "^0.1" +gir-format-check.workspace = true diff --git a/graphene/sys/Cargo.toml b/graphene/sys/Cargo.toml index 79cf7e0eee1f..67136af3541a 100644 --- a/graphene/sys/Cargo.toml +++ b/graphene/sys/Cargo.toml @@ -17,17 +17,34 @@ tempfile = "3" name = "graphene_sys" [package] -authors = ["The gtk-rs Project Developers"] build = "build.rs" description = "FFI bindings to libgraphene-1.0" -homepage = "https://gtk-rs.org/" keywords = ["graphene", "ffi", "gtk-rs", "gnome"] -license = "MIT" name = "graphene-sys" -repository = "https://github.com/gtk-rs/gtk-rs-core" -version = "0.19.0" -edition = "2021" -rust-version = "1.70" + +[package.authors] +workspace = true + +[package.edition] +workspace = true + +[package.exclude] +workspace = true + +[package.homepage] +workspace = true + +[package.license] +workspace = true + +[package.repository] +workspace = true + +[package.rust-version] +workspace = true + +[package.version] +workspace = true [package.metadata.system-deps.graphene_gobject_1_0] name = "graphene-gobject-1.0" diff --git a/pango/Cargo.toml b/pango/Cargo.toml index a930ca65f802..6023bae611ab 100644 --- a/pango/Cargo.toml +++ b/pango/Cargo.toml @@ -1,19 +1,17 @@ [package] name = "pango" documentation = "https://gtk-rs.org/gtk-rs-core/stable/latest/docs/pango/" -homepage = "https://gtk-rs.org/" -authors = ["The gtk-rs Project Developers"] keywords = ["pango", "gtk-rs", "gnome"] readme = "README.md" -version = "0.19.0" description = "Rust bindings for the Pango library" -repository = "https://github.com/gtk-rs/gtk-rs-core" -license = "MIT" -exclude = [ - "gir-files/*", -] -edition = "2021" -rust-version = "1.70" +authors.workspace = true +edition.workspace = true +exclude.workspace = true +homepage.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true +version.workspace = true [features] v1_42 = ["ffi/v1_42"] @@ -23,17 +21,12 @@ v1_48 = ["v1_46", "ffi/v1_48"] v1_50 = ["v1_48", "ffi/v1_50"] v1_52 = ["v1_50", "ffi/v1_52"] -[package.metadata.docs.rs] -all-features = true -rustc-args = ["--cfg", "docsrs"] -rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] - [dependencies] -libc = "0.2" -once_cell = "1.19" ffi = { package = "pango-sys", path = "sys" } -glib = { path = "../glib" } -gio = { path = "../gio" } +libc.workspace = true +once_cell.workspace = true +glib.workspace = true +gio.workspace = true [dev-dependencies] -gir-format-check = "^0.1" +gir-format-check.workspace = true diff --git a/pango/sys/Cargo.toml b/pango/sys/Cargo.toml index 4fc57ce2609d..85861f046138 100644 --- a/pango/sys/Cargo.toml +++ b/pango/sys/Cargo.toml @@ -28,17 +28,34 @@ v1_52 = ["v1_50"] name = "pango_sys" [package] -authors = ["The gtk-rs Project Developers"] build = "build.rs" description = "FFI bindings to libpango-1.0" -homepage = "https://gtk-rs.org/" keywords = ["pango", "ffi", "gtk-rs", "gnome"] -license = "MIT" name = "pango-sys" -repository = "https://github.com/gtk-rs/gtk-rs-core" -version = "0.19.0" -edition = "2021" -rust-version = "1.70" + +[package.authors] +workspace = true + +[package.edition] +workspace = true + +[package.exclude] +workspace = true + +[package.homepage] +workspace = true + +[package.license] +workspace = true + +[package.repository] +workspace = true + +[package.rust-version] +workspace = true + +[package.version] +workspace = true [package.metadata.system-deps.pango] name = "pango" diff --git a/pangocairo/Cargo.toml b/pangocairo/Cargo.toml index 0b3db9844545..93975be4510e 100644 --- a/pangocairo/Cargo.toml +++ b/pangocairo/Cargo.toml @@ -1,31 +1,24 @@ [package] name = "pangocairo" documentation = "https://gtk-rs.org/gtk-rs-core/stable/latest/docs/pangocairo/" -homepage = "https://gtk-rs.org/" -authors = ["The gtk-rs Project Developers"] keywords = ["pango", "cairo", "gtk-rs", "gnome"] readme = "README.md" -version = "0.19.0" description = "Rust bindings for the PangoCairo library" -repository = "https://github.com/gtk-rs/gtk-rs-core" -license = "MIT" -exclude = [ - "gir-files/*", -] -edition = "2021" -rust-version = "1.70" - -[package.metadata.docs.rs] -all-features = true -rustc-args = ["--cfg", "docsrs"] -rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] +authors.workspace = true +edition.workspace = true +exclude.workspace = true +homepage.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true +version.workspace = true [dependencies] -libc = "0.2" ffi = { package = "pangocairo-sys", path = "sys" } -glib = { path = "../glib" } -pango = { path = "../pango" } -cairo-rs = { path = "../cairo" } +libc.workspace = true +glib.workspace = true +pango.workspace = true +cairo-rs.workspace = true [dev-dependencies] -gir-format-check = "^0.1" +gir-format-check.workspace = true diff --git a/pangocairo/sys/Cargo.toml b/pangocairo/sys/Cargo.toml index fd64e6b65345..57088abe9a87 100644 --- a/pangocairo/sys/Cargo.toml +++ b/pangocairo/sys/Cargo.toml @@ -24,17 +24,34 @@ tempfile = "3" name = "pango_cairo_sys" [package] -authors = ["The gtk-rs Project Developers"] build = "build.rs" description = "FFI bindings to PangoCairo" -homepage = "https://gtk-rs.org/" keywords = ["gtk", "ffi", "gtk-rs", "gnome"] -license = "MIT" name = "pangocairo-sys" -repository = "https://github.com/gtk-rs/gtk-rs-core" -version = "0.19.0" -edition = "2021" -rust-version = "1.70" + +[package.authors] +workspace = true + +[package.edition] +workspace = true + +[package.exclude] +workspace = true + +[package.homepage] +workspace = true + +[package.license] +workspace = true + +[package.repository] +workspace = true + +[package.rust-version] +workspace = true + +[package.version] +workspace = true [package.metadata.system-deps.pangocairo] name = "pangocairo"