10 releases

Uses new Rust 2024

0.4.0 Oct 7, 2025
0.3.5 Oct 7, 2025
0.3.3 May 24, 2024
0.3.2 Apr 7, 2023
0.1.2 Nov 8, 2022

#10 in #xcb

Download history 434/week @ 2025-08-04 403/week @ 2025-08-11 416/week @ 2025-08-18 394/week @ 2025-08-25 457/week @ 2025-09-01 260/week @ 2025-09-08 188/week @ 2025-09-15 267/week @ 2025-09-22 413/week @ 2025-09-29 636/week @ 2025-10-06 267/week @ 2025-10-13 413/week @ 2025-10-20 274/week @ 2025-10-27 351/week @ 2025-11-03 236/week @ 2025-11-10 228/week @ 2025-11-17

1,149 downloads per month

MIT/Apache

22KB
253 lines

xcb-util-cursor

github crates.io docs.rs build status crates.io

xcb-util-cursor is a safe rust interface for libxcb-cursor. It depends on rust-xcb and uses their types.

# Cargo.toml
[dependencies]
xcb = "1.6.0"
xcb-util-cursor = "0.4.0"
use xcb_util_cursor::{Cursor, CursorContext};

let (connection, _) = xcb::Connection::connect(None).unwrap();
let setup = connection.get_setup();
let screen = setup.roots().next().unwrap();

let cursor_context = CursorContext::new(&connection, screen).unwrap();

let left_ptr = cursor_context.load_cursor(Cursor::LeftPtr);

Dependencies

~0.7–2.8MB
~56K SLoC