Registry / other / x11-dl

x11-dl

JSON →
library2.21.0rscratesunverified

Dynamic loading bindings for the X11 library, allowing Rust programs to interface with the X Window System.

# Cargo.toml [dependencies] x11-dl = "2.21.0"
INSTALL
IMPORT
SIG · X11-DL
X
x11-dl
otherrustv2.21.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Xlib
use x11_dl::xlib::Xlib;

Opens a connection to the X server using dynamic loading.

use x11_dl::xlib::Xlib; let xlib = Xlib::open().unwrap(); unsafe { let display = (xlib.XOpenDisplay)(std::ptr::null()); if !display.is_null() { println!("Connected to X server"); (xlib.XCloseDisplay)(display); } }
Debug
Known issues
gotchaRequires the X11 libraries to be installed on the system.
fix
Install libx11-dev or equivalent package for your OS.
affects: >=2.0.0
Upgrade
Version history
2.21.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
22
Resources
x11-dl — cargo add x11-dl · libregistry