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