rust-bindings: Update cargo package list
authorColin Walters <walters@verbum.org>
Thu, 9 Jun 2022 18:59:44 +0000 (14:59 -0400)
committerColin Walters <walters@verbum.org>
Thu, 9 Jun 2022 19:50:17 +0000 (15:50 -0400)
When we did the merger, it turns out cargo by default is basically
going to include all of stuff in the git repository root directory
which is "libostree".  We just want the stuff in `rust-bindings/`.

I initially tried adding `include = "rust-bindings/"` but
according to
https://doc.rust-lang.org/cargo/reference/manifest.html#the-exclude-and-include-fields
specifying `include` means that `exclude` is
ignored, which is kind of annoying.  Further, doing so *also*
turns off the cargo automatic rules for handling e.g. `gitignore`.

So for now I went with the approach of adding everything from the C
library stuff into `exclude/`.

Cargo.toml

index 561b4dec6074cab53ebf0d8946b6f7485dab986c..a52c27d3ea82372a832a34bc4be5280088c303a3 100644 (file)
@@ -11,11 +11,15 @@ repository = "https://github.com/ostreedev/ostree"
 version = "0.14.0"
 
 exclude = [
-    "rust-bindings/conf/**",
-    "rust-bindings/gir-files/**",
-    "rust-bindings/sys/**",
-    ".gitlab-ci.yml",
-    "LICENSE.LGPL*",
+    "/*.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/**",
 ]
 
 [package.metadata.docs.rs]