This adds a test which scans the layouts directory for files which have not been added to the resources file. The majority os user-submitted layouts don't include layout registration, and I ran out of ideas for how to make it more visible in the documentation. Instead, it's going to be solved on the other side: the CI pipelines shall fail. To make it easy on experimenters with untidy trees, it's disabled by default.
33 lines
706 B
TOML
33 lines
706 B
TOML
[package]
|
|
name = "rs"
|
|
version = "0.1.0"
|
|
|
|
[lib]
|
|
name = "rs"
|
|
path = "@path@/src/lib.rs"
|
|
crate-type = ["staticlib", "rlib"]
|
|
|
|
# Cargo can't do autodiscovery if Cargo.toml is not in the root.
|
|
[[bin]]
|
|
name = "test_layout"
|
|
path = "@path@/src/bin/test_layout.rs"
|
|
|
|
[[example]]
|
|
name = "test_layout"
|
|
path = "@path@/examples/test_layout.rs"
|
|
|
|
[[example]]
|
|
name = "find_orphan_layouts"
|
|
path = "@path@/examples/find_orphan_layouts.rs"
|
|
|
|
[features]
|
|
glib_v0_14 = []
|
|
|
|
# Dependencies which don't change based on build flags
|
|
[dependencies]
|
|
maplit = "1.0.*"
|
|
serde = { version = "1.0.*", features = ["derive"] }
|
|
serde_yaml = "0.8.*"
|
|
xkbcommon = { version = "0.4.*", features = ["wayland"] }
|
|
# Here is inserted the Cargo.deps file
|