Repository navigation
v0.4.3: built with mise instead of Bazel; references and real validation in the examples
LatestThe generated code and the runtime are the same as in 0.4.2. For a consumer, one thing changes: building the plugin from source (cargo install protoc-gen-protocontract-buffa) needs Rust 1.100.0. The release binaries need no Rust, and their names and checksums-sha256.txt are as before.
Added
examples/glossaryuses references to a service: a catalog service,
Glossaries, keeps glossaries by topic, takes one as a reference in a
message field (Add(Shelf)), and returns one (Open(Topic)gives a
GlossaryRef). The consumer opens its topic and annotates through the
glossary it gets back; the application wires it all. No change to the
plugin or the runtime.
Changed
-
examples/refsvalidates for real:AlarmandTickdeclare
protovalidate rules (a required, non-empty label, a required clock, at
most three backups, no time before the epoch),Alarms.Setfails with
the newALARMS_ERROR_CODE_INVALID_ALARM, and the tests check each rule.
The README describesvalidate=truewith an example. protovalidate's
protos come from mise (http:protovalidate1.2.2, staged by
mise run protos), not from the Buf Schema Registry. -
The example's protovalidate moves to
protovalidate-buffa0.8.0 with
protoc-gen-protovalidate-buffa0.11.0 (released together:time
replaceschrono). TheValidateimpl thatvalidate=trueemits is
unchanged and builds against both. -
Every dependency is declared once, in the root
[workspace.dependencies],
and an unused dependency fails the build (cargo::unused_dependencies,
Cargo 1.100). Nothing changes for a consumer of the crates. -
The repository builds with Cargo and mise
instead of Bazel:mise run gateis the gate (generated files, clippy,
rustfmt, cargo-deny, buf lint and format, markdownlint, tests),
mise run generaterefreshes the golden files and the examples, and
mise run formatformats in place. The release workflow runs the gate
on the same six platforms, the golden check now on Windows ARM64 too.
The plugin's binaries, their names, andchecksums-sha256.txtare
unchanged, so thebazel_utilscatalog and a misegithub:backend
keep working; the crates are unchanged. -
The dependency check is cargo-deny (
deny.toml): advisories as before,
plus licences, duplicate crates, and sources. -
The pinned toolchain is Rust 1.100.0 (was 1.99.1), and building the
plugin from source (cargo install protoc-gen-protocontract-buffa) now
needs it. The runtime and the generated code still need Rust 1.92; the
generated code is the same. -
Cargo.locktakes the newest version of each dependency that is at
least two days old (tokio 1.54.1, syn 3.0.10, and others), which the
plugin's release binaries are built with. The version ranges in
Cargo.toml, what a consumer resolves against, are unchanged.
Removed
- The Bazel module
protocontract_buffa(MODULE.bazeland every
BUILD.bazel). No consumer took it throughbazel_dep; a Bazel build
takes the plugin from thebazel_utilscatalog as before.