Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Development and releases

Bug reports and pull requests are welcome. Read CONTRIBUTING.md for the setup and the checks a change must pass, and follow the Code of Conduct.

  • If the module behaves differently from tokers/zstd-nginx-module with the same configuration, open an issue with the Differs from tokers/zstd-nginx-module template.
  • Problems with the Zstandard encoder itself belong in mzstd.
  • Report security vulnerabilities privately as described in SECURITY.md, not as public issues.

Changesets

Changelogs and versions are managed with Sampo. Every user-facing change needs a changeset, a short Markdown file in .sampo/changesets/:

cargo install sampo
sampo add          # pick the bump level (patch, minor, major) and describe the change

Releases

On every push to main, the release workflow (.github/workflows/release.yml) collects the pending changesets into a Release (main) pull request that bumps the version in Cargo.toml and updates CHANGELOG.md. Merging that pull request tags the release (vX.Y.Z) and publishes a GitHub Release with the changelog entry. The crate is not published to crates.io.

For the workflow to open pull requests, enable Settings → Actions → General → Allow GitHub Actions to create and approve pull requests.

Packages

Packages are published by hand: run the Publish workflow (.github/workflows/publish.yml) on the release tag. It builds a package for every target, tests each in a clean container of its distribution (install, nginx -t, a zstd-compressed response with and without a thread pool, removal), and pushes them to Cloudsmith only if all of them pass.

  • With dry_run it builds and tests without pushing, also from a branch.
  • A rerun on the same tag skips the packages already published.
  • Targets come from nginx.org and the distributions at run time (.github/scripts/publish-matrix.py, which also says how to add a distribution); nginx_stable and nginx_mainline override the nginx.org versions.

License

MIT; see LICENSE. The directives and their behaviour follow tokers/zstd-nginx-module (BSD 2-Clause).