| Crates.io | lucide-icons |
| lib.rs | lucide-icons |
| version | 0.544.0 |
| created_at | 2025-04-19 21:41:25.255094+00 |
| updated_at | 2025-09-12 02:35:58.201623+00 |
| description | Rust definitions for lucide-icons |
| homepage | https://github.com/WhySoBad/lucide-icons-rs |
| repository | https://github.com/WhySoBad/lucide-icons-rs |
| max_upload_size | |
| id | 1641167 |
| size | 1,486,245 |
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