1[package]
2name = "wayland-backend"
3version = "0.3.3"
4authors = ["Elinor Berger <elinor@safaradeg.net>"]
5edition = "2021"
6rust-version = "1.65"
7repository = "https://github.com/smithay/wayland-rs"
8documentation = "https://docs.rs/wayland-backend/"
9license = "MIT"
10categories = ["gui", "api-bindings"]
11keywords = ["wayland"]
12description = "Low-level bindings to the Wayland protocol"
13readme = "README.md"
14build = "build.rs"
15
16[dependencies]
17wayland-sys = { version = "0.31.0", path = "../wayland-sys", features = [] }
18log = { version = "0.4", optional = true }
19scoped-tls = "1.0"
20downcast-rs = "1.2"
21raw-window-handle = { version = "0.5.0", optional = true }
22
23[dependencies.smallvec]
24version = "1.9"
25# Some additional features can be enabled since wayland-rs requires at least Rust 1.65
26features = [
27 "union", # 1.49
28 "const_generics", # 1.51
29 "const_new", # 1.51
30]
31
32[dependencies.rustix]
33version = "0.38.17"
34features = [
35 "event",
36 "fs",
37 "net",
38 "process",
39]
40
41[build-dependencies]
42cc = "1.0"
43
44[dev-dependencies]
45wayland-scanner = { path = "../wayland-scanner"}
46wayland-sys = { path = "../wayland-sys", features = ["client", "server"] }
47concat-idents = "1.1"
48env_logger = "0.10"
49
50[features]
51client_system = ["wayland-sys/client"]
52server_system = ["wayland-sys/server"]
53dlopen = ["wayland-sys/dlopen"]
54
55[package.metadata.docs.rs]
56all-features = true
57rustdoc-args = ["--cfg", "docsrs"]
58