Skip to content

Commit 33c0f53

Browse files
committed
protocols: Do not include all of protocols/ submodule
As proposed originally in #827. In contrast to that version, this version uses wildcards, but then also uses `!` rules to exclude the few XML files we do not need. Also use `/` at start of rules, or `protocols/README.md` is excluded.
1 parent 8f827b1 commit 33c0f53

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

wayland-protocols/Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ categories = ["gui", "api-bindings"]
1111
edition = "2021"
1212
rust-version = "1.65"
1313
readme = "README.md"
14+
include = [
15+
"/src/**/*.rs",
16+
"/Cargo.toml",
17+
"/README.md",
18+
"/LICENSE.txt",
19+
"/protocols/stable/*/*.xml",
20+
"/protocols/staging/*/*.xml",
21+
"/protocols/unstable/*/*.xml",
22+
# Exclude old version of stabalized protocols
23+
"!/protocols/unstable/xdg-shell/xdg-shell-unstable-v5.xml",
24+
"!/protocols/unstable/xdg-shell/xdg-shell-unstable-v6.xml",
25+
"!/protocols/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml",
26+
"!/protocols/unstable/tablet/tablet-unstable-v2.xml",
27+
]
1428

1529
[dependencies]
1630
wayland-scanner = { version = "0.31.6", path = "../wayland-scanner" }

0 commit comments

Comments
 (0)