# Generating the sets (oxblade-icon-sets)

> This page explains how the set crates are generated from pinned PHP releases and how to check that the committed files match.

- Package: oxblade-icon-sets (Rust, alpha), crates: `oxblade-heroicons`, `oxblade-lucide`, `oxblade-phosphor`, `oxblade-tabler`, `oxblade-bootstrap-icons`, `oxblade-feather`, `oxblade-fa`, `oxblade-lucide-lab`
- Maintenance: active; Latest release: 0.1.0 (2026-12-05); Release of oxblade-heroicons: 0.1.0; Release of oxblade-lucide: 0.1.0; Release of oxblade-phosphor: 0.1.0; Release of oxblade-tabler: 0.1.0; Release of oxblade-bootstrap-icons: 0.1.0; Release of oxblade-feather: 0.1.0; Release of oxblade-fa: 0.1.0; Release of oxblade-lucide-lab: 0.1.0; MSRV: Rust 1.99 or later; Licence: MIT (oxblade-lucide: MIT AND ISC, oxblade-fa: MIT AND CC-BY-4.0, oxblade-lucide-lab: MIT AND ISC)
- Links: [Repository](https://github.com/bowerbird-si/oxblade-icon-sets), [crates.io](https://crates.io/crates/oxblade-heroicons/0.1.0), [docs.rs](https://docs.rs/oxblade-heroicons/0.1.0), [Changelog](https://oss.bowerbird.si/oxblade-icon-sets/docs/changelog/), [Contributing](https://github.com/bowerbird-si/oxblade-icon-sets/blob/f3e3059dcb5585128e794402bedc0ddc17f4d2ab/CONTRIBUTING.md), [Security policy](https://github.com/bowerbird-si/oxblade-icon-sets/blob/f3e3059dcb5585128e794402bedc0ddc17f4d2ab/SECURITY.md)
- Based on: [blade-ui-kit/blade-heroicons](https://github.com/driesvints/blade-heroicons): The PHP package that supplies the Heroicons SVGs and naming conventions.; [mallardduck/blade-lucide-icons](https://github.com/mallardduck/blade-lucide-icons): The PHP package that supplies the Lucide and Lucide Lab SVGs and naming conventions.; [Heroicons](https://github.com/tailwindlabs/heroicons): The original MIT-licensed artwork for the Heroicons set.; [Lucide](https://github.com/lucide-icons/lucide): The original artwork and attribution for Lucide and Lucide Lab.; [Feather](https://github.com/feathericons/feather): The original MIT-licensed artwork for the Feather-derived icons in Lucide.; [codeat3/blade-phosphor-icons](https://github.com/codeat3/blade-phosphor-icons): The PHP package that supplies the Phosphor SVGs and naming conventions.; [Phosphor](https://github.com/phosphor-icons/core): The original MIT-licensed Phosphor artwork in six weights.; [secondnetwork/blade-tabler-icons](https://github.com/secondnetwork/blade-tabler-icons): The PHP package that supplies the Tabler SVGs, including its legacy files and filled aliases.; [Tabler Icons](https://github.com/tabler/tabler-icons): The original MIT-licensed artwork for the Tabler set.; [davidhsianturi/blade-bootstrap-icons](https://github.com/davidhsianturi/blade-bootstrap-icons): The PHP package that supplies the Bootstrap SVGs and the bi prefix.; [Bootstrap Icons](https://github.com/twbs/icons): The original MIT-licensed Bootstrap artwork.; [brunocfalcao/blade-feather-icons](https://github.com/brunocfalcao/blade-feather-icons): The PHP package that supplies the Feather SVG files and feathericon prefix.; [owenvoke/blade-fontawesome](https://github.com/owenvoke/blade-fontawesome): The PHP package that supplies the free solid, regular and brand SVGs with their original attribution comments.; [Font Awesome Free](https://github.com/FortAwesome/Font-Awesome): The original CC BY 4.0 artwork credited in oxblade-fa.; [Lucide Lab archive](https://github.com/lucide-icons/lucide-lab): The original ISC-licensed artwork for 32 icons retained from the archived Lucide Lab repository.
- HTML version: https://oss.bowerbird.si/oxblade-icon-sets/docs/generating/
- Source: https://github.com/bowerbird-si/oxblade-icon-sets/blob/f3e3059dcb5585128e794402bedc0ddc17f4d2ab/docs/generating.md

This page explains how the set crates are generated from pinned PHP releases and how to check that the committed files match.

## Inputs

`sets.toml` pins each set: the PHP package and release tag, its full Git commit, the SHA-256 of the
release archive, the folders the SVGs come from, the expected icon count, the artwork repository and
commit, the SHA-256 of both licence files, and the licences that apply.

## Generate and check

`scripts/generate.py` downloads each pinned archive and artwork licence, verifies them, and writes the
crates under `crates/`. To check that the committed crates match the pins without writing anything:

```shellscript
python3 scripts/generate.py --check
```

It prints the number of verified SVGs per crate and fails if a file is missing, changed or obsolete.
To regenerate after changing `sets.toml`:

```shellscript
python3 scripts/generate.py            # every set
python3 scripts/generate.py lucide     # one set
```

Both commands need network access to GitHub. `--archive-cache <dir>` reads the archives and licence
files from a folder instead.

## What the generator checks

Before it writes any file, the generator:

- refuses an archive or licence file whose SHA-256 differs from `sets.toml`;
- refuses a licence outside the reviewed list;
- refuses archive entries that are links, absolute paths or contain `..`, and never extracts the archive
  to disk;
- accepts icon names made of lowercase letters, digits, `-` and `_`;
- accepts only SVG files whose elements are `svg`, `circle`, `ellipse`, `g`, `line`, `path`, `polygon`,
  `polyline` and `rect`, with a fixed list of presentation attributes (including unitless opacity from 0 to 1), no text content, no comments except the five pinned Font Awesome attribution comments, and
  no declarations;
- refuses a set whose icon count differs from `sets.toml`.

The accepted SVGs are copied byte for byte. Nothing is optimised or rewritten.

## Updating a set

Change the pins for one set in `sets.toml`, review the new archive and licence, run the generator for
that set, and check the diff of its `NOTICE` and `LICENSES/`. A change to the licence terms is reviewed
before the new pin is merged.
