Registry / other / xcb
library1.7.0rscratesunverified

Rust safe bindings for XCB.

# Cargo.toml [dependencies] xcb = "1.7.0"
INSTALL
IMPORT
SIG · XCB
X
xcb
otherrustv1.7.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.

Connection
use xcb::Connection;

Connects to the X server using XCB.

use xcb::Connection; fn main() -> Result<(), Box<dyn std::error::Error>> { let (conn, screen_num) = Connection::connect(None)?; println!("Connected to X server, screen: {}", screen_num); Ok(()) }
Debug
Known issues
gotchaRequires an X server running; will panic if DISPLAY is not set.
fix
Ensure DISPLAY environment variable is set or use a virtual framebuffer like Xvfb.
affects: >=1.0.0
Upgrade
Version history
1.7.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources