Skip to content

Commit

Permalink
rust: Switch to using include
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cgwalters committed Sep 8, 2023
1 parent 749857d commit 3c97bc5
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 3c97bc5

Please sign in to comment.