Library

libfyaml v1.0.0-rc2

Versionv1.0.0-rc2
Stars★ 346
Released2026-11-11

Fully feature complete YAML parser and emitter, supporting the latest YAML spec and passing the full YAML testsuite.

Release notes

# libfyaml v1.0.0-rc2

`v1.0.0-rc2` is the second release candidate for libfyaml 1.0. It has the
content of `v1.0.0-rc1` and fixes its Python wheel build: the macos-arm64
wheel is now built on `macos-15`, as `macos-14` is no longer supported, so
the rc1 wheels were never published. The API is complete; only fixes are
expected before 1.0.0.

Highlights:

- Relocatable generic images, with an optional check while the image is loaded
- Stable handles for durable arena locations, valid in every process
- FIL-C and WebAssembly support
- `cparse`, a C declaration parser that is now the default reflection backend (libclang is opt in)
- `!!binary` as base64, and a lossless round trip of bytes that are not UTF-8
- A second round of fuzzing fixes, gh#411 to gh#503

## Generics and durable arenas

`fy_generic_image_create()` and `fy_generic_image_load()` write a generic
value to a relocatable image and load it again at any address.
`FY_GENERIC_IMAGE_CHECKED` makes the load validate every word, so a damaged or
hostile image is rejected instead of followed. `fy_generic_refs_publish()` and
`fy_generic_refs_get()` publish a generic root in a durable arena, and
`fy_allocator_ptr_to_handle()` / `fy_allocator_handle_to_ptr()` give stable
handles to arena locations.

## FIL-C and WebAssembly

libfyaml builds and passes its tests under FIL-C 0.687, including durable
arenas shared with native processes. Where the runtime has `zgc_reserve_at()`
a durable region is placed at its base, as natively; with any other runtime it
is placed at a runtime chosen address. Under FIL-C the mremap allocator uses
small arenas that are never grown, which cuts the counted memory of a builder
from 32 MiB to 2 MiB. See `doc/filc-support.md`.

The WebAssembly (Emscripten) build runs its tests under node. See
`doc/wasm-support.md`.

## Reflection

`cparse` is a C preprocessor, constant expression evaluator and declaration
parser. It replaces libclang as the default reflection backend, and C
declarations can be generated from types and parsed back to the same types.
libclang is loaded on first use, and only when built with it.

## Text and binary

`!!binary` is emitted as base64 (`FYOPEF_BINARY_BASE64`) and parsed back.
Bytes that are not valid UTF-8 round trip as `\uDC80`-`\uDCFF`. New `fy-tool`
options: `--write-image`, `--read-image`, `--binary-base64` and
`--no-yaml-1.2-binary`.

## Correctness fixes

The fuzzing reports gh#411 to gh#503 found leaks, double frees, use after
free, unbounded recursion and size errors in the parser, document builder,
emitter, YPath, generic and reflection code. Each report has a test.

## Build and ABI

The linker interface version moves to `9:0:7`: interfaces were added and none
were removed or changed. The libclang reflection backend is now opt in.

## Resources

- Full changelog: https://github.com/pantoniou/libfyaml/compare/v1.0.0-beta2...v1.0.0-rc2
- Details: `CHANGELOG.md`

Share this resource


Discovered 2026-11-13 Source GitHub Archive 2026-11 →