From 3029cf940909face8c1e0d0b4899f98230107d14 Mon Sep 17 00:00:00 2001 From: pentamassiv Date: Mon, 7 Aug 2023 02:45:50 +0200 Subject: [PATCH] Reduce size of the crates by excluding unnecessary files from being published --- gdk-pixbuf/Cargo.toml | 4 +--- gdk-pixbuf/sys/Cargo.toml | 1 + gio/Cargo.toml | 4 +--- gio/sys/Cargo.toml | 1 + glib-macros/Cargo.toml | 1 + glib/Cargo.toml | 10 ++++++---- glib/gobject-sys/Cargo.toml | 1 + glib/sys/Cargo.toml | 1 + graphene/Cargo.toml | 4 +--- graphene/sys/Cargo.toml | 1 + pango/Cargo.toml | 4 +--- pango/sys/Cargo.toml | 1 + pangocairo/Cargo.toml | 4 +--- pangocairo/sys/Cargo.toml | 1 + 14 files changed, 19 insertions(+), 19 deletions(-) diff --git a/gdk-pixbuf/Cargo.toml b/gdk-pixbuf/Cargo.toml index f2a082894406..e4767c2576f3 100644 --- a/gdk-pixbuf/Cargo.toml +++ b/gdk-pixbuf/Cargo.toml @@ -9,9 +9,7 @@ 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/*", -] +exclude = ["tests", "Gir.toml", "docs.md", "versions.txt"] edition = "2021" rust-version = "1.70" diff --git a/gdk-pixbuf/sys/Cargo.toml b/gdk-pixbuf/sys/Cargo.toml index 0a4bfa34d88a..4c18d0c058f7 100644 --- a/gdk-pixbuf/sys/Cargo.toml +++ b/gdk-pixbuf/sys/Cargo.toml @@ -39,6 +39,7 @@ repository = "https://github.com/gtk-rs/gtk-rs-core" version = "0.19.0" edition = "2021" rust-version = "1.70" +exclude = ["tests", "Gir.toml", "versions.txt"] [package.metadata.docs.rs] all-features = true diff --git a/gio/Cargo.toml b/gio/Cargo.toml index 1d2136da1b71..22b86bfdcc3a 100644 --- a/gio/Cargo.toml +++ b/gio/Cargo.toml @@ -9,9 +9,7 @@ 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/*", -] +exclude = ["tests", "docs.md", "Gir.toml"] edition = "2021" rust-version = "1.70" build = "build.rs" diff --git a/gio/sys/Cargo.toml b/gio/sys/Cargo.toml index 1f39fc8286ec..2e8383e886e1 100644 --- a/gio/sys/Cargo.toml +++ b/gio/sys/Cargo.toml @@ -48,6 +48,7 @@ repository = "https://github.com/gtk-rs/gtk-rs-core" version = "0.19.0" edition = "2021" rust-version = "1.70" +exclude = ["tests", "Gir.toml", "versions.txt"] [package.metadata.docs.rs] all-features = true diff --git a/glib-macros/Cargo.toml b/glib-macros/Cargo.toml index e7f216ccb1fd..eaa27cd3ed6a 100644 --- a/glib-macros/Cargo.toml +++ b/glib-macros/Cargo.toml @@ -10,6 +10,7 @@ repository = "https://github.com/gtk-rs/gtk-rs-core" license = "MIT" edition = "2021" rust-version = "1.70" +exclude = ["tests"] [dependencies] heck = "0.4" diff --git a/glib/Cargo.toml b/glib/Cargo.toml index 196d850e7ef5..fff60f7cf126 100644 --- a/glib/Cargo.toml +++ b/glib/Cargo.toml @@ -9,9 +9,7 @@ version = "0.19.0" keywords = ["glib", "gtk-rs", "gnome", "GUI"] repository = "https://github.com/gtk-rs/gtk-rs-core" license = "MIT" -exclude = [ - "gir-files/*", -] +exclude = ["benches", "tests", "docs.md", "Gir_GObject.toml", "Gir.toml"] edition = "2021" rust-version = "1.70" @@ -31,7 +29,11 @@ ffi = { package = "glib-sys", path = "sys" } gobject_ffi = { package = "gobject-sys", path = "gobject-sys" } glib-macros = { path = "../glib-macros" } rs-log = { package = "log", version = "0.4", optional = true } -smallvec = { version = "1.0", features = ["union", "const_generics", "const_new"] } +smallvec = { version = "1.0", features = [ + "union", + "const_generics", + "const_new", +] } thiserror = "1" gio_ffi = { package = "gio-sys", path = "../gio/sys", optional = true } memchr = "2.5.0" diff --git a/glib/gobject-sys/Cargo.toml b/glib/gobject-sys/Cargo.toml index a2ccaa2a5fd1..ab779b95d2b2 100644 --- a/glib/gobject-sys/Cargo.toml +++ b/glib/gobject-sys/Cargo.toml @@ -38,6 +38,7 @@ repository = "https://github.com/gtk-rs/gtk-rs-core" version = "0.19.0" edition = "2021" rust-version = "1.70" +exclude = ["tests", "Gir.toml", "versions.txt"] [package.metadata.docs.rs] all-features = true diff --git a/glib/sys/Cargo.toml b/glib/sys/Cargo.toml index 79f83e03cb87..5aaf8b5f54f1 100644 --- a/glib/sys/Cargo.toml +++ b/glib/sys/Cargo.toml @@ -36,6 +36,7 @@ repository = "https://github.com/gtk-rs/gtk-rs-core" version = "0.19.0" edition = "2021" rust-version = "1.70" +exclude = ["tests", "Gir.toml", "versions.txt"] [package.metadata.docs.rs] all-features = true diff --git a/graphene/Cargo.toml b/graphene/Cargo.toml index 0a3527090be9..a07bd93c2264 100644 --- a/graphene/Cargo.toml +++ b/graphene/Cargo.toml @@ -9,9 +9,7 @@ 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/*", -] +exclude = ["tests", "docs.md", "Gir.toml"] edition = "2021" rust-version = "1.70" diff --git a/graphene/sys/Cargo.toml b/graphene/sys/Cargo.toml index d3da4bed4418..9b0c65d0fcd8 100644 --- a/graphene/sys/Cargo.toml +++ b/graphene/sys/Cargo.toml @@ -28,6 +28,7 @@ repository = "https://github.com/gtk-rs/gtk-rs-core" version = "0.19.0" edition = "2021" rust-version = "1.70" +exclude = ["tests", "Gir.toml", "versions.txt"] [package.metadata.docs.rs] all-features = true diff --git a/pango/Cargo.toml b/pango/Cargo.toml index af014aa6f440..ffe4e995a507 100644 --- a/pango/Cargo.toml +++ b/pango/Cargo.toml @@ -9,9 +9,7 @@ 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/*", -] +exclude = ["tests", "docs.md", "Gir.toml"] edition = "2021" rust-version = "1.70" diff --git a/pango/sys/Cargo.toml b/pango/sys/Cargo.toml index ed378bb613d3..c53ce5f492e2 100644 --- a/pango/sys/Cargo.toml +++ b/pango/sys/Cargo.toml @@ -39,6 +39,7 @@ repository = "https://github.com/gtk-rs/gtk-rs-core" version = "0.19.0" edition = "2021" rust-version = "1.70" +exclude = ["tests", "Gir.toml", "versions.txt"] [package.metadata.docs.rs] all-features = true diff --git a/pangocairo/Cargo.toml b/pangocairo/Cargo.toml index 0b3db9844545..c210270aff42 100644 --- a/pangocairo/Cargo.toml +++ b/pangocairo/Cargo.toml @@ -9,9 +9,7 @@ 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/*", -] +exclude = ["tests", "docs.md", "Gir.toml"] edition = "2021" rust-version = "1.70" diff --git a/pangocairo/sys/Cargo.toml b/pangocairo/sys/Cargo.toml index f2d0075341d2..b252e9273c9e 100644 --- a/pangocairo/sys/Cargo.toml +++ b/pangocairo/sys/Cargo.toml @@ -35,6 +35,7 @@ repository = "https://github.com/gtk-rs/gtk-rs-core" version = "0.19.0" edition = "2021" rust-version = "1.70" +exclude = ["Gir.toml", "versions.txt"] [package.metadata.docs.rs] all-features = true