#icons #lucide #iced #font

lucide-icons

Rust definitions for lucide-icons

36 breaking releases

Uses new Rust 2024

new 0.511.0 May 17, 2025
0.509.0 May 10, 2025

#141 in GUI

Download history 1537/week @ 2025-04-15 368/week @ 2025-04-22 380/week @ 2025-04-29 429/week @ 2025-05-06 758/week @ 2025-05-13

2,387 downloads per month

MIT AND ISC

690KB
11K SLoC

lucide-icons

Auto-generated rust icon definitions for lucide icons version 0.511.0

The library provides an Icon enum which contains all lucide icon variants:

use lucide_icons::Icon;

fn main() {
    let icon = Icon::Anvil;
    assert_eq!(format!("{icon}"), String::from("anvil"));
    println!("unicode = {}", icon.unicode());
}

With the iced feature the library also provides the icons as iced widgets:

use lucide_icons::lucide_font_bytes;
use lucide_icons::iced::icon_anvil;

fn setup_application() {
    // get font bytes for the bundled font
    let bytes = lucide_font_bytes();

    // add the font to iced
    let settings = iced::Settings {
        fonts: vec![bytes.into()],
        ..Default::default()
    };

    // run app with settings...
}

fn view() -> iced::Element<'_, Message, Theme, iced::Renderer> {
    iced::widget::column![
        icon_anvil()
    ].into()
}

For more details have a look at the generator repository page

Dependencies

~0–20MB
~306K SLoC