4 releases (stable)

1.2.0 May 25, 2025
1.1.0 Nov 2, 2023
1.0.0 May 9, 2023
0.1.0 May 5, 2023

#202 in GUI

Download history 231471/week @ 2025-09-14 226690/week @ 2025-09-21 241667/week @ 2025-09-28 269362/week @ 2025-10-05 271731/week @ 2025-10-12 257644/week @ 2025-10-19 253557/week @ 2025-10-26 233547/week @ 2025-11-02 226815/week @ 2025-11-09 264078/week @ 2025-11-16 243189/week @ 2025-11-23 271910/week @ 2025-11-30 267223/week @ 2025-12-07

1,071,719 downloads per month
Used in 1,983 crates (20 directly)

MIT OR Apache-2.0 OR Zlib

20KB
198 lines

The cross platform cursor icon type.

This type is intended to be used as a standard interoperability type between GUI frameworks in order to convey the cursor icon type.

Example

use cursor_icon::CursorIcon;

// Parse a cursor icon from the string that describes it.
let cursor_name = "pointer";
let cursor_icon: CursorIcon = cursor_name.parse()?;
println!("The cursor icon is {:?}", cursor_icon);

cursor-icon: A common cursor icon type

This library provides a standard type to work with the cursor icon across multiple platforms.

The transformation to the actual value used by the platform for this icon is left to the libraries like https://github.com/rust-windowing/winit.

Dependencies

~170KB