Distribution¶
pqbench ships as prebuilt binaries through
cargo-dist (dist), published as
GitHub Releases. No Cargo registry is in the loop: crates.io cannot republish a
version, and GitHub Packages has no Cargo registry at all.
Install¶
The newest release installs with the generated shell installer:
curl -LsSf https://github.com/pqbench/pqbench/releases/latest/download/pqbench-cli-installer.sh | sh
It detects the platform, downloads the matching archive, verifies the checksums,
and installs pqbench into $CARGO_HOME/bin (default ~/.cargo/bin), with
pqb as a symlink to it. Run it with --help for the flags (pinning a
version, choosing the install path, …). The alias comes from
[dist.bin-aliases] and is created by the installer; the archive and cargo
install carry only pqbench.
The same release publishes the same binary as a Python wheel, at the same version:
The wheel is data-only: maturin packages the pqbench binary in the wheel's
.data/scripts/ directory, and pip installs it into the environment's bin/.
There is no Python extension and no importable module — the CLI is the
interface, and the files it writes are the data. See Python.
To build from source instead — no registry, always current:
Or, from a checkout:
Artifacts¶
Each release carries one archive per target plus a checksum beside it, a combined
sha256.sum, the shell installer, and a source tarball:
pqbench-cli-<target>.tar.xz
pqbench-cli-<target>.tar.xz.sha256
pqbench-cli-installer.sh
sha256.sum
source.tar.gz
| target | platform |
|---|---|
x86_64-unknown-linux-gnu |
Linux x86_64 |
aarch64-unknown-linux-gnu |
Linux arm64 |
x86_64-apple-darwin |
macOS Intel |
aarch64-apple-darwin |
macOS Apple silicon |
Assets are named after the crate (pqbench-cli) — cargo-dist's convention, not
the binary name (pqbench). The archive holds the binary and the licenses. The
newest release can be fetched directly, or a specific tag pinned:
https://github.com/pqbench/pqbench/releases/latest/download/pqbench-cli-x86_64-unknown-linux-gnu.tar.xz
https://github.com/pqbench/pqbench/releases/download/v0.0.1/pqbench-cli-x86_64-unknown-linux-gnu.tar.xz
Linux binaries are built on ubuntu-22.04, so they run on glibc 2.35 or newer
(Ubuntu 22.04, Debian 12, RHEL 10 and up).
Each archive also carries a Sigstore-backed build-provenance attestation
(github-attestations), so a download can be checked against the workflow that
produced it, not just against a checksum:
What is in the binary¶
Every target is built --all-features: aws, delta, and iceberg are
enabled, so s3:// inputs and Delta/Iceberg tables work out of the box. A
downloaded binary cannot be rebuilt by its user, so a partial build that fails
at runtime on remote input is not worth shipping. The cost is size, dominated by
the Delta kernel and object_store. The feature sets are additive, so the intermediate combinations
(aws or delta alone) are subsets of --all-features and are not separate
artifacts.
The build uses a portable CPU baseline: .cargo/config.toml sets the codec
flags without -march=native, so the codecs are not tuned to the build machine.
These numbers are benchmarks — a SIGILL on an older CPU is a worse failure
than a codec a few percent slower. To reproduce lzbench's native numbers locally,
export CXXFLAGS with -march=native for that build.
Releasing¶
Configuration lives in dist-workspace.toml, and the
workflow (.github/workflows/release.yml) is generated from it — change the
config and run cargo dist generate, never the workflow by hand.
Releases are cut by hand, not on every merge. Three steps.
1. Bump the version in [workspace.package] in Cargo.toml, commit, and
merge it — the release tag must equal this version. The wheel is built from
crates/pqbench-cli, which inherits that version, so there is no second
manifest to update:
2. Dispatch the binary release with the matching tag:
or run the Release workflow from the Actions tab with tag: v0.0.2. The
default input, dry-run, runs only plan (no build, no publish), so it previews
what a release would produce. If the tag does not match the crate version,
dist errors before building.
dist derives the release from the tag, creates the GitHub Release (and the git
tag) itself, then runs plan → build-local-artifacts → build-global-artifacts →
host → announce: it builds each target, generates the installer, checksums and
source tarball, and uploads them. Every version is kept — cargo-dist does not
prune — and each is published as "latest", so consumers' releases/latest/...
URL always serves the newest.
3. Dispatch the wheel once that tag exists:
or run the Publish to PyPI workflow from the Actions tab. Publishing is
separate because PyPI's trusted publisher names the workflow file that may
upload, and a job defined in a workflow that another workflow calls presents a
claim PyPI does not document (pypi/warehouse#11096) — so the wheel keeps its
own trigger. It builds the wheels and the sdist and uploads them under trusted
publishing: no token is stored.
The version is the workspace's, so the two dispatches cannot ship different
versions. The wheel is built from crates/pqbench-cli, which inherits
[workspace.package] version; maturin reads that version, so there is no
separate manifest to sync.
Source consumers¶
To track main from a source dependency, set in Cargo.toml
pqbench = { git = "https://github.com/pqbench/pqbench", branch = "main" } and
run cargo update -p pqbench to move the lock to the newest commit.