lucide-icons

Crates.iolucide-icons
lib.rslucide-icons
version0.544.0
created_at2025-04-19 21:41:25.255094+00
updated_at2025-09-12 02:35:58.201623+00
descriptionRust definitions for lucide-icons
homepagehttps://github.com/WhySoBad/lucide-icons-rs
repositoryhttps://github.com/WhySoBad/lucide-icons-rs
max_upload_size
id1641167
size1,486,245
(WhySoBad)

documentation

README

lucide-icons

Auto-generated rust icon definitions for lucide icons version 0.544.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() {
    let settings = iced::Settings {
        // add bundled font to iced
        fonts: vec![LUCIDE_FONT_BYTES.into()],
        ..Default::default()
    };

    // run app with settings...
}

fn view() -> iced::Element<'_, Message, Theme, iced::Renderer> {
    iced::widget::column![
        // named widget function per icon
        icon_anvil(),
        // widget function per variant
        Icon::Anvil.widget()
    ].into()
}

For more details have a look at the generator repository page

Commit count: 35

cargo fmt