Naming carries prefix (the word before the number in new family and PostScript names) and changed_by (the Apache notice), so the crate names no service. harfbuzz-subset-sys records that MIT-Modern-Variant is allowed for its vendored HarfBuzz only.
harfbuzz-subset-sys
Raw bindings to the HarfBuzz subsetter, built from vendored upstream source.
build.rs compiles the harfbuzz/src/harfbuzz-subset.cc amalgamation with
the C++ compiler cc finds; it downloads nothing. src/lib.rs declares the
few C functions and constants craft-font-subset uses, by hand, and src/safe.rs
wraps them in a safe API. The crate is one of the places that allow unsafe
(design-lint rule contract/unsafe-allow); craft-font-subset has none.
Vendored release
| Field | Value |
|---|---|
| Version | 15.0.0 |
| URL | https://github.com/harfbuzz/harfbuzz/releases/download/15.0.0/harfbuzz-15.0.0.tar.xz |
| sha256 | 968536e9abd782f07f7954044c0c4020199fcdd39b41d221ec42d2a3be4a44df |
harfbuzz/src/ is the tarball's src/ without the Rust and WebAssembly
shapers, unit tests, generator scripts and inputs, meson files, and the
harfbuzz.cc and harfbuzz-world.cc amalgamations. harfbuzz/COPYING is
HarfBuzz's licence ("Old MIT", SPDX MIT-Modern-Variant). That identifier is
allowed for this vendored source only (the owner's exception, 2026-11-12); it is
not on the house licence allowlist for other dependencies.
Updating
- Take the version and the
harfbuzz-<version>.tar.xzsha256 from the release page. - Run
scripts/update-harfbuzz.sh <version> <sha256>from the repository root. It checks the digest, replacesharfbuzz/src/andCOPYING, and updates the table above. - Read the release notes (
NEWSin the tarball) for subsetter changes, and check that the declarations insrc/lib.rsstill matchhb-subset.h,hb-blob.h,hb-face.handhb-set.h. - Run
tools/cl test craft-font-subset.