Pictogram
Pictogram resolves icons at compile time using data stored in the manifest directory. During compilation an icon is looked up and baked into your application. This bypasses compilation penalties as the entire icon data does not have to be compiled by rustc.
Features
- NOT vibe coded.
- Type-Safe: If an icon can't be resolved, it will lead to a compilation error.
- Compile-Time: Icons are baked into your code at compile time.
- Only pay for what you need: Only compile the icons, you actually use.
- Framework independent: Although, there is an adapter for dioxus.
How to use it
# By default all features are enabled
= { = "*", =["material"] }
let svg = svg!;
println!;
Dioxus adapter
The adapter is available here.
rsx!
Supported libraries
More libraries are going to be added soon.
| Library | Feature | Crate |
|---|---|---|
| Material design icons | material | pictogram-icons-material |
| Bootstrap | bootstrap | pictogram-icons-bootstrap |
| Feather | feather | pictogram-icons-feather |
License
This project is licensed under either
at your option.