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 test
    Factory::svg and Svg::toHtml
  • attribute-name-and-title-safety · Diverged · Core
    Factory and fluent attributes
  • insertion-boundaries · Diverged · Core
    SVG tag and title insertion
  • repeat-title · Diverged · Core
    Repeated Svg::toHtml on the same instance
  • packaged-sets · Covered · Core · 1 test
    Rendering PHP Blade Heroicons and Blade Lucide SVG data
  • blade-extensions · Covered · Core · 2 tests
    Blade svg() and @svg, icon and prefixed set components
  • multi-part-prefix · Diverged · Core
    Factory::splitSetAndName
  • deferred-svg · Planned
    Svg deferred stack output
  • icon-cache · Planned
    icons:cache and icons:clear for PHP filesystem manifests
  • component-configuration · Covered · 1 test
    Blade Icons component aliases and disabling set components
  • filesystem-disks · Planned
    Factory::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

Crates: oxblade-icons · Upstream notices

Documentation