1[package]
2name = "x11rb-protocol"
3version = "0.13.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.63"
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.5"
22
23[features]
24default = ["std"]
25std = []
26
27# Enable extra traits for the X11 types
28extra-traits = []
29
30# Enable parsing for requests.
31#
32# This adds a lot of extra code that isn't used in the common case.
33request-parsing = []
34
35# Enable utility functions in `x11rb::resource_manager` for querying the
36# resource databases.
37resource_manager = ["std"]
38
39# Enable this feature to enable all the X11 extensions
40all-extensions = [
41 "composite",
42 "damage",
43 "dbe",
44 "dpms",
45 "dri2",
46 "dri3",
47 "glx",
48 "present",
49 "randr",
50 "record",
51 "render",
52 "res",
53 "screensaver",
54 "shape",
55 "shm",
56 "sync",
57 "xevie",
58 "xf86dri",
59 "xf86vidmode",
60 "xfixes",
61 "xinerama",
62 "xinput",
63 "xkb",
64 "xprint",
65 "xselinux",
66 "xtest",
67 "xv",
68 "xvmc",
69]
70
71# Features to enable individual X11 extensions
72composite = ["xfixes"]
73damage = ["xfixes"]
74dbe = []
75dpms = []
76dri2 = []
77dri3 = []
78glx = []
79present = ["randr", "xfixes", "sync"]
80randr = ["render"]
81record = []
82render = []
83res = []
84screensaver = []
85shape = []
86shm = []
87sync = []
88xevie = []
89xf86dri = []
90xf86vidmode = []
91xfixes = ["render", "shape"]
92xinerama = []
93xinput = ["xfixes"]
94xkb = []
95xprint = []
96xselinux = []
97xtest = []
98xv = ["shm"]
99xvmc = ["xv"]
100
101[package.metadata.docs.rs]
102all-features = true
103
104[[bench]]
105name = "proto_connection"
106harness = false
107