Registry / networking / wayland-client

wayland-client

JSON →
library0.31.9rscratesunverified

Bindings to the standard C implementation of the Wayland protocol, client side.

# Cargo.toml [dependencies] wayland-client = "0.31.9"
INSTALL
IMPORT
SIG · WAYLAND-CLIENT
W
wayland-client
networkingrustv0.31.9
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 wayland_client::Connection;

Connecting to the Wayland display server.

use wayland_client::Connection; fn main() -> Result<(), Box<dyn std::error::Error>> { let conn = Connection::connect_to_env()?; println!("Connected to Wayland display!"); Ok(()) }
Debug
Known issues
gotchaRequires a running Wayland compositor; will fail on X11-only systems.
fix
Ensure you are running under a Wayland session, or use the wayland-backend feature for fallback.
affects: >=0.31.0
Upgrade
Version history
0.31.9latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources
wayland-client — cargo add wayland-client · libregistry