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 google/ngx_brotli with the same configuration, open an issue with the Differs from google/ngx_brotli template.
- Problems with the Brotli encoder itself belong in mbrotli.
- 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 brotli-compressed response with and without a thread pool, a
pre-compressed .br file with brotli_static,
removal), and pushes them to Cloudsmith only if all of them pass.
- With
dry_runit 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_stableandnginx_mainlineoverride the nginx.org versions.
License
MIT; see LICENSE. The directives and their behaviour follow google/ngx_brotli (BSD 2-Clause).