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 473/week @ 2025-10-23 201/week @ 2025-10-30 391/week @ 2025-11-06 184/week @ 2025-11-13 328/week @ 2025-11-20 734/week @ 2025-11-27 898/week @ 2025-12-04 728/week @ 2025-12-11 867/week @ 2025-12-18 544/week @ 2025-12-25 124/week @ 2026-01-01 328/week @ 2026-01-08 262/week @ 2026-01-15 318/week @ 2026-01-22 304/week @ 2026-01-29 248/week @ 2026-02-05

1,157 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