4 releases (breaking)

0.4.0 Jan 7, 2025
0.3.0 Dec 26, 2022
0.2.0 Nov 8, 2022
0.1.0 Mar 3, 2018

#111 in Images

Download history 42350/week @ 2024-10-27 41949/week @ 2024-11-03 42973/week @ 2024-11-10 45111/week @ 2024-11-17 44630/week @ 2024-11-24 45536/week @ 2024-12-01 50005/week @ 2024-12-08 49181/week @ 2024-12-15 33409/week @ 2024-12-22 39628/week @ 2024-12-29 49823/week @ 2025-01-05 45797/week @ 2025-01-12 52620/week @ 2025-01-19 57050/week @ 2025-01-26 50427/week @ 2025-02-02 58645/week @ 2025-02-09

223,150 downloads per month
Used in 220 crates (19 directly)

MIT license

70KB
1K SLoC

rust-ico

Build Status Crates.io Documentation

A pure Rust library for encoding/decoding ICO image files.

Overview

An ICO file (.ico) stores a collection of small images of different sizes and color depths. Individial images within the file can be encoded in either BMP or PNG format. ICO files are typically used for website favicons and for Windows application icons.

CUR files (.cur), which store Windows cursor images, use the same file format as ICO files, except that each image also comes with (x, y) hotspot coordinates that determines where on the image the user is pointing. This libary supports both file types.

License

rust-ico is made available under the MIT License.

Dependencies

~1.5MB
~27K SLoC