From 3c97bc5d886fed7e018474cf054164b4c98f8f4d Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 8 Sep 2023 07:50:37 -0400 Subject: [PATCH] rust: Switch to using `include` This way we don't randomly pick up bits from the C library unintentionally as things change on that side. I think the support for `!` in `include` may be relatively new and that's why the original author here chose to do things via `exclude`. But using `include` with a few specific exclusions is just way better. --- Cargo.toml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6788d028f2..e45eae3314 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,16 +11,12 @@ repository = "https://github.com/ostreedev/ostree" rust-version = "1.70.0" version = "0.19.0" -exclude = [ - "/*.am", "/apidoc", "/autogen.sh", "/bash", "/bsdiff", - "/build-aux", "/buildutil", "/*.mk", "/ci", "/coccinelle", - "/*.ac", "/docs", "/libglnx", "/man", "/manual-tests", - "/*.yml", "/*.doap", "/src", "/tests", - "/.github", "/.cci.jenkinsfile", "/.dir-locals.el", "/.editorconfig", - "/.vimrc", "/.copr", "/.packit.yaml", "/GNUmakefile", "TODO", - "/rust-bindings/conf/**", - "/rust-bindings/gir-files/**", - "/rust-bindings/sys/**", +include = [ + "/COPYING", + "/rust-bindings/**", + "!/rust-bindings/conf/**", + "!/rust-bindings/gir-files/**", + "!/rust-bindings/sys/**", ] [package.metadata.docs.rs]