[package]
name = "x11rb"
version = "0.9.0"
description = "Rust bindings to X11"
authors = [
"Uli Schlachter <psychon@znc.in>",
"Eduardo Sánchez Muñoz <esm@eduardosm.net>",
]
repository = "https://github.com/psychon/x11rb"
readme = "README.md"
edition = "2018"
license = "MIT OR Apache-2.0"
keywords = ["xcb", "X11"]
exclude = [
"/xcb-proto-1.14-1-g2b3559c",
"/Makefile",
"/.mergify.yml",
"/appveyor.yml",
]
[dependencies]
libc = { version = "0.2", optional = true }
libloading = { version = "0.7.0", optional = true }
once_cell = { version = "1.8.0", optional = true }
gethostname = "0.2.1"
[target.'cfg(unix)'.dependencies]
nix = "0.22"
[target.'cfg(windows)'.dependencies]
winapi-wsapoll = "0.1.1"
[target.'cfg(windows)'.dependencies.winapi]
version = "0.3"
features = ["winsock2"]
[features]
allow-unsafe-code = ["libc"]
cursor = ["render", "resource_manager"]
image = []
resource_manager = []
dl-libxcb = ["allow-unsafe-code", "libloading", "once_cell"]
all-extensions = [
"composite",
"damage",
"dpms",
"dri2",
"dri3",
"glx",
"present",
"randr",
"record",
"render",
"res",
"screensaver",
"shape",
"shm",
"sync",
"xevie",
"xf86dri",
"xf86vidmode",
"xfixes",
"xinerama",
"xinput",
"xkb",
"xprint",
"xselinux",
"xtest",
"xv",
"xvmc",
]
composite = ["xfixes"]
damage = ["xfixes"]
dpms = []
dri2 = []
dri3 = []
glx = []
present = ["randr", "xfixes", "sync"]
randr = ["render"]
record = []
render = []
res = []
screensaver = []
shape = []
shm = []
sync = []
xevie = []
xf86dri = []
xf86vidmode = []
xfixes = ["render", "shape"]
xinerama = []
xinput = ["xfixes"]
xkb = []
xprint = []
xselinux = []
xtest = []
xv = ["shm"]
xvmc = ["xv"]
[package.metadata.docs.rs]
features = [
"all-extensions",
"allow-unsafe-code",
"cursor",
"dl-libxcb",
"image",
"resource_manager",
]
[[example]]
name = "generic_events"
required-features = ["present"]
[[example]]
name = "shared_memory"
required-features = ["libc", "shm"]
[[example]]
name = "xeyes"
required-features = ["shape"]
[[example]]
name = "simple_window"
required-features = ["cursor", "resource_manager"]
[[example]]
name = "display_ppm"
required-features = ["image"]
[[example]]
name = "record"
required-features = ["record"]
[workspace]
members = ["generator", "xcbgen-rs", "cairo-example", "xtrace-example"]