Repository navigation
Releases
0.10.0
Git submodules. brygge now decodes Git repositories that contain submodules, which it refused until
this release. Each submodule is carried as exactly what Git records, its path and the commit it pins in
another repository, and its own repository is never read, imported or verified: every report says so
wherever a submodule appears. brygge encode git writes each one back as a submodule, and checks it
against the artifact. Artifacts are now written as IR contract 0.4.0, which brygge 0.9.0 and earlier
cannot read. Every existing atom keeps its id, and this build still reads 0.2.0 and 0.3.0 artifacts.
Install with cargo install --locked brygge, or download a binary from the GitHub release.
0.9.0
Subversion at real size and shape. brygge's Subversion decoder now shares unchanged directories
between revisions, so a branch or tag copy costs almost nothing: memory follows the size of the history,
not the number of tags times the number of files. On codeblocks (6,221 revisions), a decode is 9.5× to
25.5× faster and needs about a quarter of the memory, and a history with thousands of tags now decodes,
where 0.8.1 refused it. The new options --layout-trunk, --layout-branches and --layout-tags set the
Subversion layout, each changing only its own directory, and --layout-trunk . decodes a repository with
no trunk/branches/tags layout as one line, so it too can be encoded to Git. Every existing artifact is
byte-identical. Install with cargo install --locked brygge, or download a binary from the GitHub
release.
0.8.1
A security patch: decoding is bounded against amplifying inputs. A small Git repository whose trees reuse
one subtree, or a small Subversion dump with many directory copies, could make decode use memory out of all
proportion to its size: about 4 GB from a 0.5 MB dump. The fault was present since 0.1.0, and affects
availability only: never a wrong or a corrupt result. 0.8.1 refuses such inputs with a resource limit
(exit 20), through four declared ceilings. Real repositories are unaffected: the whole test corpus decodes
byte-identically to 0.8.0. Install with cargo install --locked brygge, or download a binary from the GitHub
release.
0.8.0
Git as a target. brygge now writes Git repositories. brygge encode git turns an artifact into a new bare
Git repository, and before handing it over, decodes the result with brygge's own Git decoder and checks every
commit against the artifact. Every commit names brygge, its source and the artifact in Brygge- trailers, so
the result never reads as the source's own history. For Subversion, decode svn --branch-lines gives each
branch and tag its own line of history with its own files; for CVS, --reconstruct-refs now includes the
main line as the branch trunk; and brygge transform authors maps Subversion and CVS user names to Git
identities. This release also fixes two released faults: a Subversion revision that copied a directory and
restated files inside it wrote an artifact that its own verify rejected, and a transform that changed a
copied-from commit was refused. Install with cargo install --locked brygge, or download a binary from the
GitHub release.
0.7.1
A patch for Rust 1.100 and the AUR. Rust 1.100 changed where cargo writes test executables, and brygge's
plugin tests stopped finding the binaries they run. The brygge AUR package runs those tests when it builds, so
installing brygge 0.7.0-1 from the AUR fails on Rust 1.100. 0.7.1 fixes the tests, and its AUR packages
(0.7.1-1) build again. brygge-bin's package metadata now names the aarch64 binary for aarch64. The binary that
package installed was always the right one. brygge's behaviour, its artifacts and its output are unchanged.
Install with cargo install --locked brygge, or download a binary from the GitHub release.
0.7.0
Contract 0.3.0: compact artifacts, and transforms that record themselves. Artifacts are compressed, and
4.6× to 7.5× smaller on the measured repositories. Their digest is taken over the uncompressed content, so it
does not depend on how they were compressed. brygge transform <name> runs an external transform plugin (for
example an author mapping) and checks its output against its input: every change marked, every removal
recorded, nothing invented. If any check fails, nothing is written. verify --against-source traces a
transformed artifact back to its source. brygge still reads artifacts of contract 0.2.0. Breaking: brygge
0.6.0 and earlier cannot read the new artifacts, and brygge-ir's API changes (below). Install with cargo install --locked brygge, or download a binary from the GitHub release.
0.6.0
Extensibility: build your own encoder on brygge's IR, and run it as brygge encode <target>. A new guide
shows how to write an encoder for any target system from a brygge artifact alone, and the honesty rules it
must keep: every value it supplies or alters is marked, and brygge's derivations are carried or disclosed.
brygge encode <target> <artifact> runs an external plugin, brygge-encode-<target>, found on PATH only.
brygge verifies the artifact first, refuses to hand on one that fails, and says plainly that the plugin is
not part of brygge. An unsupported example encoder from the IR to Git, through git fast-import, is in the
repository (examples/encode-git); it is never released. brygge itself supports no third-party encoder.
Breaking, for the library only: brygge-ir's artifact::Decoded gains digest. Install with
cargo install --locked brygge, or download a binary from the GitHub release.
0.5.0
Scale at real size: brygge now decodes and verifies large repositories in a fraction of the memory.
File content is kept on disk while decoding, and artifacts are written and read as a stream, so memory
follows a repository's history rather than its content. For fish-shell (23,496 commits), brygge decode
fell from about 18.7 GiB to about 410 MiB, and brygge verify from about 9.1 GiB to about 64 MiB.
Artifacts are byte-identical to 0.4.0's. Decoding now needs free disk space of about the artifact's size,
in the output's directory or in --spill-dir. Also: Arch Linux packages on the AUR, brygge (built
from source) and brygge-bin (the release's binary), published by the release workflow. Breaking, for
the library only: brygge-ir's blob access is owned and fallible. Install with
cargo install --locked brygge, from the AUR, or download a binary from the GitHub release.
Note (updated 2026-11-02): the AUR packages announced above were delayed until their names were restored on the AUR. They are published from 0.7.0 on.
0.4.0
Hardening: brygge's parsers are now tested against malformed input, and proven on real
repositories. Mutation tests feed every parser of untrusted bytes, the IR artifact reader and
verify's checks with deliberately malformed variants of real inputs, aimed at sizes, counts and
ceilings: a quick round on every push, and a deep round under a memory cap whenever parser code or a
dependency changes. They found five defects in the CVS reader, present since 0.1.0. The worst let a
32-byte crafted ,v file hang brygge decode cvs indefinitely. All five are fixed. brygge also decodes
and verifies pinned public repositories of every source kind, and refuses by name one that holds a Git
submodule; the results are in tools/bench/README.md. Also: RCS edit scripts that no tool writes
are refused, and brygge … | head no longer panics. To note: a large repository needs memory of
about 2–4× its content (fish-shell, 23,496 commits: about 9.6 GiB). Reducing that is the next release's
theme. Install with cargo install --locked brygge, or download a binary from the GitHub release.
Correction (2026-10-21): the memory figure above understated a full decode. The 9.6 GiB was the decoding step alone. The brygge decode that users run, which also writes the artifact, peaked at about 18.7 GiB for fish-shell, about 4× its content. Work for the next release reduces this (RFC 015, measured in tools/bench/README.md).
0.3.1
Security: a crafted Mercurial repository could exhaust brygge's memory. In every release from 0.1.0
to 0.3.0, a zstd-compressed revlog chunk of a few tens of kilobytes could make brygge allocate gigabytes
and fail (RUSTSEC-2026-0344, in ruzstd before 0.9.1). It is a denial of service only, with no memory
corruption, and it needs a hostile repository. 0.3.1 upgrades ruzstd and bounds every zstd block and
window before allocation. Upgrade if you decode Mercurial repositories you do not control. The
minimum supported Rust version rises from 1.85 to 1.87, which the fix requires; the prebuilt binaries are
unaffected. Decoding is otherwise unchanged. Install with cargo install --locked brygge, or download a
binary from the GitHub release.