1[package]
2name = "x11rb-protocol"
3version = "0.12.0"
4description = "Rust bindings to X11"
5authors = [
6 "Uli Schlachter <psychon@znc.in>",
7 "Eduardo Sánchez Muñoz <eduardosm-dev@e64.io>",
8 "notgull <jtnunley01@gmail.com>",
9]
10repository = "https://github.com/psychon/x11rb"
11readme = "../README.md"
12edition = "2021"
13rust-version = "1.56"
14license = "MIT OR Apache-2.0"
15keywords = ["xcb", "X11"]
16
17[dependencies]
18serde = { version = "1", features = ["derive"], optional = true }
19
20[dev-dependencies]
21criterion = "0.4"
22
23[target.'cfg(unix)'.dependencies.nix]
24version = "0.26"
25default-features = false
26features = ["fs"]
27optional = true
28
29[features]
30default = ["std"]
31std = ["nix"]
32
33# Enable utility functions in `x11rb::resource_manager` for querying the
34# resource databases.
35resource_manager = ["std"]
36
37# Enable this feature to enable all the X11 extensions
38all-extensions = [
39 "composite",
40 "damage",
41 "dbe",
42 "dpms",
43 "dri2",
44 "dri3",
45 "glx",
46 "present",
47 "randr",
48 "record",
49 "render",
50 "res",
51 "screensaver",
52 "shape",
53 "shm",
54 "sync",
55 "xevie",
56 "xf86dri",
57 "xf86vidmode",
58 "xfixes",
59 "xinerama",
60 "xinput",
61 "xkb",
62 "xprint",
63 "xselinux",
64 "xtest",
65 "xv",
66 "xvmc",
67]
68
69# Features to enable individual X11 extensions
70composite = ["xfixes"]
71damage = ["xfixes"]
72dbe = []
73dpms = []
74dri2 = []
75dri3 = []
76glx = []
77present = ["randr", "xfixes", "sync"]
78randr = ["render"]
79record = []
80render = []
81res = []
82screensaver = []
83shape = []
84shm = []
85sync = []
86xevie = []
87xf86dri = []
88xf86vidmode = []
89xfixes = ["render", "shape"]
90xinerama = []
91xinput = ["xfixes"]
92xkb = []
93xprint = []
94xselinux = []
95xtest = []
96xv = ["shm"]
97xvmc = ["xv"]
98
99[package.metadata.docs.rs]
100features = [
101 "all-extensions",
102 "resource_manager",
103]
104
105[[bench]]
106name = "proto_connection"
107harness = false
108