#bindings #depend #safe #libxcb-cursor

sys xcb-util-cursor-sys

Bindings to libxcb-cursor

7 releases

Uses new Rust 2024

0.2.0 Oct 7, 2025
0.1.6 Oct 7, 2025
0.1.4 May 24, 2024
0.1.3 Apr 7, 2023
0.1.1 Nov 9, 2022

#14 in #depend

Download history 184/week @ 2025-11-12 324/week @ 2025-11-19 640/week @ 2025-11-26 925/week @ 2025-12-03 703/week @ 2025-12-10 923/week @ 2025-12-17 632/week @ 2025-12-24 104/week @ 2025-12-31 324/week @ 2026-01-07 265/week @ 2026-01-14 320/week @ 2026-01-21 252/week @ 2026-01-28 306/week @ 2026-02-04 261/week @ 2026-02-11 278/week @ 2026-02-18 264/week @ 2026-02-25

1,173 downloads per month
Used in xcb-util-cursor

MIT/Apache

9KB

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