xwayland-satellite/Cargo.toml
En-En 0fd0dd75e9 tests: only use PipeWriter if rust-version >= 1.87
By using conditional compilation, we now support running the test suite
with Rust versions 1.83 to 1.86 again. This allows us to lower the
`rust-version` specified in the root Cargo.toml (because it was
controlling the toolchain used in CI) to 1.83, resolving #230.

This solution keeps tests operational on our MSRV while also lowering
it. It would have been unsatisfying to have an MSRV which could not
compile the tests.

`rustversion` was selected as the dependency to control the conditional
compilation since it was already a build dependency needed by
`vergen-gitcl`, so no new dependencies were added.
2025-09-02 20:38:01 -04:00

62 lines
1.4 KiB
TOML

[workspace]
members = ["macros", "testwl", "wl_drm"]
[workspace.dependencies]
wayland-client = "0.31.2"
wayland-protocols = "0.32.0"
wayland-scanner = "0.31.1"
wayland-server = "0.31.1"
rustix = "0.38.31"
[workspace.lints.clippy]
all = "deny"
[workspace.package]
rust-version = "1.83.0"
[package]
name = "xwayland-satellite"
version = "0.7.0"
edition = "2021"
rust-version.workspace = true
[lints]
workspace = true
[lib]
crate-type = ["lib"]
[dependencies]
bitflags = "2.5.0"
rustix = { workspace = true, features = ["event"] }
wayland-client.workspace = true
wayland-protocols = { workspace = true, features = ["client", "server", "staging", "unstable"] }
wayland-server.workspace = true
xcb = { version = "1.6.0", features = ["composite", "randr", "res"] }
wl_drm = { path = "wl_drm" }
log = "0.4.21"
pretty_env_logger = "0.5.0"
xcb-util-cursor = "0.3.2"
smithay-client-toolkit = { version = "0.19.1", default-features = false }
sd-notify = { version = "0.4.2", optional = true }
macros = { version = "0.1.0", path = "macros" }
hecs = { version = "0.10.5", features = ["macros"] }
[features]
default = []
systemd = ["dep:sd-notify"]
[dev-dependencies]
rustix = { workspace = true, features = ["fs"] }
testwl = { path = "testwl" }
[build-dependencies]
anyhow = "1.0.98"
vergen-gitcl = "1.0.8"
[profile.ci]
inherits = "dev"
# Shrink bloat in ./target which negatively affects build caching
incremental = false
debug = false