Rust Alpha
oxblade-icons
Render inline SVG icons from Rust, oxblade templates and Laravel for Rust. A port of Blade Icons with separate icon set crates.
Render inline SVG icons in Rust and oxblade with the same class and attribute rules as Blade Icons.
Read the docs Source on GitHub
cargo add oxblade-icons- Latest release
- 0.1.0, 2026-12-05
- Maintenance
- Active
- MSRV
- Rust 1.99 or later
- Licence
- MIT
PHP parity
Follows blade-ui-kit/blade-icons 1.11.0 (commit 9a6e9f0cd96f). Last verified .
- Parity level
- Core
- Abilities
- 11
- Covered
- 4
- Diverged
- 4
- Planned
- 3
- PHP fixtures
- 14
Fixtures are generated by PHP itself: PHP 8.4, blade-ui-kit/blade-heroicons 2.7.0, blade-ui-kit/blade-icons 1.11.0, mallardduck/blade-lucide-icons 2.0.38.
Coverage by ability
-
factory-svg· Covered · Core · 1 testFactory::svg and Svg::toHtml -
attribute-name-and-title-safety· Diverged · CoreFactory and fluent attributes -
insertion-boundaries· Diverged · CoreSVG tag and title insertion -
repeat-title· Diverged · CoreRepeated Svg::toHtml on the same instance -
packaged-sets· Covered · Core · 1 testRendering PHP Blade Heroicons and Blade Lucide SVG data -
blade-extensions· Covered · Core · 2 testsBlade svg() and @svg, icon and prefixed set components -
multi-part-prefix· Diverged · CoreFactory::splitSetAndName -
deferred-svg· PlannedSvg deferred stack output -
icon-cache· Plannedicons:cache and icons:clear for PHP filesystem manifests -
component-configuration· Covered · 1 testBlade Icons component aliases and disabling set components -
filesystem-disks· PlannedFactory::add ordered filesystem paths and named Illuminate disks
Differences from PHP
Factory and fluent attributes- Plain title text and fluent attributes escape markup where needed. Trusted values preserve PHP output, and invalid or event-handler attribute names are rejected.
SVG tag and title insertion- Insertion observes markup boundaries and keeps titles inside real SVG elements rather than rewriting the contents of comments, CDATA and quoted attributes.
Repeated Svg::toHtml on the same instance- Rendering does not mutate the source or insert extra title elements on subsequent renders.
Factory::splitSetAndName- Longest registered prefix wins in both Rust and Blade, including when a set prefix itself contains a hyphen.
Built on
- blade-ui-kit/blade-icons: The PHP renderer and template behavior this package ports.
Crates: oxblade-icons
· Upstream notices
Documentation
- OverviewRender inline SVG icons in Rust and oxblade with the same class and attribute rules as Blade Icons.
- Getting startedThis page adds oxblade-icons and a generated icon set to a Rust project and renders a first icon.
- Icon setsA registry holds one or more icon sets; this page shows how to register generated sets and your own SVGs, and how defaults and fallbacks work.
- Rendering iconsThis page covers the three render calls, the attribute bag, titles and accessible labels, and the errors a render can return.
- Blade templatesThe blade feature registers four ways to render an icon in oxblade templates: the svg() helper, the @svg directive, and one component prefix per set.
- LaravelThe laravel feature adds a service provider that builds the icon registry from application configuration, puts it in the container and registers the Blade…
- Migrating from PHPThis page lists each blade-ui-kit/blade-icons call and its Rust equivalent, for code moving from PHP.
- ChangelogWhat changed in each release of oxblade-icons: additions, changes and fixes.