Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

## [Unreleased]

## [0.5.1] - 2026-05-07

### Fixed

- **`buffa-codegen`: `ALLOW_LINTS` now includes `unused_qualifications`.**
Cross-proto references within the same package are emitted through the
canonical `super::super::__buffa::view::…` (and `…::oneof::…`) path even
though the target lives in the same generated module. The bare name would
resolve, but the canonical path is stable when a sibling proto defines a
same-named natural-path re-export. Workspaces that opt
`unused_qualifications = "warn"` and build with `-D warnings` were getting
false positives from generated code; the lint is now in the package
stitcher's `#[allow(...)]` block alongside `dead_code`, `unused_imports`,
etc.

## [0.5.0] - 2026-05-05

This release is a minor bump under the
Expand Down
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exclude = [
]

[workspace.package]
version = "0.5.0"
version = "0.5.1"
edition = "2021"
rust-version = "1.85"
license = "Apache-2.0"
Expand All @@ -33,12 +33,12 @@ keywords = ["protobuf", "protocol-buffers", "serialization", "no-std", "editions
categories = ["encoding", "no-std"]

[workspace.dependencies]
buffa = { path = "buffa", version = "0.5.0", default-features = false }
buffa-types = { path = "buffa-types", version = "0.5.0" }
buffa-descriptor = { path = "buffa-descriptor", version = "0.5.0" }
buffa-codegen = { path = "buffa-codegen", version = "0.5.0" }
buffa-build = { path = "buffa-build", version = "0.5.0" }
buffa-test = { path = "buffa-test", version = "0.5.0" }
buffa = { path = "buffa", version = "0.5.1", default-features = false }
buffa-types = { path = "buffa-types", version = "0.5.1" }
buffa-descriptor = { path = "buffa-descriptor", version = "0.5.1" }
buffa-codegen = { path = "buffa-codegen", version = "0.5.1" }
buffa-build = { path = "buffa-build", version = "0.5.1" }
buffa-test = { path = "buffa-test", version = "0.5.1" }
base64 = { version = "0.22", default-features = false, features = ["alloc"] }
bytes = { version = "1", default-features = false }
hashbrown = { version = "0.15", default-features = false, features = ["default-hasher"] }
Expand Down
2 changes: 1 addition & 1 deletion buffa-build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ categories = ["development-tools::build-utils"]
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
buffa = { path = "../buffa", version = "0.5.0" }
buffa = { path = "../buffa", version = "0.5.1" }
buffa-codegen = { workspace = true }
tempfile = "3"
2 changes: 1 addition & 1 deletion buffa-codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ categories = ["development-tools::build-utils"]

[dependencies]
# `path` wins for local workspace development; `version` is used on publish.
buffa = { path = "../buffa", version = "0.5.0" }
buffa = { path = "../buffa", version = "0.5.1" }
buffa-descriptor = { workspace = true }
prettyplease = { workspace = true }
proc-macro2 = { workspace = true }
Expand Down
6 changes: 6 additions & 0 deletions buffa-codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ pub const ALLOW_LINTS: &[&str] = &[
"non_camel_case_types",
"dead_code",
"unused_imports",
// Cross-proto refs within the same package are emitted through the
// canonical `super::super::__buffa::view::…` path even though the
// target lives in the same generated module — using the bare name
// would resolve, but the canonical path is stable when a sibling
// proto defines a same-named natural-path re-export.
"unused_qualifications",
"clippy::derivable_impls",
"clippy::match_single_binding",
"clippy::uninlined_format_args",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include!("google.protobuf.compiler.plugin.rs");
non_camel_case_types,
dead_code,
unused_imports,
unused_qualifications,
clippy::derivable_impls,
clippy::match_single_binding,
clippy::uninlined_format_args,
Expand Down
1 change: 1 addition & 0 deletions buffa-descriptor/src/generated/google.protobuf.mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include!("google.protobuf.descriptor.rs");
non_camel_case_types,
dead_code,
unused_imports,
unused_qualifications,
clippy::derivable_impls,
clippy::match_single_binding,
clippy::uninlined_format_args,
Expand Down
1 change: 1 addition & 0 deletions buffa-types/src/generated/google.protobuf.mod.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,25 +295,25 @@ Download the binaries for your platform from the [releases page](https://github.

```sh
# Download binaries + cosign signatures + certificates (both plugins match)
gh release download v0.5.0 --repo anthropics/buffa \
gh release download v0.5.1 --repo anthropics/buffa \
--pattern 'protoc-gen-buffa*-linux-x86_64*'

# Verify with GitHub attestations (requires gh CLI ≥ 2.49)
gh attestation verify protoc-gen-buffa-v0.5.0-linux-x86_64 --repo anthropics/buffa
gh attestation verify protoc-gen-buffa-packaging-v0.5.0-linux-x86_64 --repo anthropics/buffa
gh attestation verify protoc-gen-buffa-v0.5.1-linux-x86_64 --repo anthropics/buffa
gh attestation verify protoc-gen-buffa-packaging-v0.5.1-linux-x86_64 --repo anthropics/buffa

# Or with cosign (standalone, no gh required) — shown for one binary
cosign verify-blob \
--signature protoc-gen-buffa-v0.5.0-linux-x86_64.sig \
--certificate protoc-gen-buffa-v0.5.0-linux-x86_64.pem \
--signature protoc-gen-buffa-v0.5.1-linux-x86_64.sig \
--certificate protoc-gen-buffa-v0.5.1-linux-x86_64.pem \
--certificate-identity-regexp "github.com/anthropics/buffa" \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
protoc-gen-buffa-v0.5.0-linux-x86_64
protoc-gen-buffa-v0.5.1-linux-x86_64

# Install both
chmod +x protoc-gen-buffa-v0.5.0-linux-x86_64 protoc-gen-buffa-packaging-v0.5.0-linux-x86_64
mv protoc-gen-buffa-v0.5.0-linux-x86_64 ~/.local/bin/protoc-gen-buffa
mv protoc-gen-buffa-packaging-v0.5.0-linux-x86_64 ~/.local/bin/protoc-gen-buffa-packaging
chmod +x protoc-gen-buffa-v0.5.1-linux-x86_64 protoc-gen-buffa-packaging-v0.5.1-linux-x86_64
mv protoc-gen-buffa-v0.5.1-linux-x86_64 ~/.local/bin/protoc-gen-buffa
mv protoc-gen-buffa-packaging-v0.5.1-linux-x86_64 ~/.local/bin/protoc-gen-buffa-packaging
```

Available platforms: `linux-x86_64`, `linux-aarch64`, `darwin-x86_64`, `darwin-aarch64`, `windows-x86_64` (`.exe`). All releases include SHA-256 checksums, Sigstore cosign signatures, and signed SLSA build provenance for supply chain verification.
Expand Down Expand Up @@ -369,7 +369,7 @@ Plugin options (passed via `opt:`):
```yaml
version: v2
plugins:
- remote: buf.build/anthropic/buffa:v0.5.0
- remote: buf.build/anthropic/buffa:v0.5.1
out: src/generated
opt: [views=true]
```
Expand Down
2 changes: 1 addition & 1 deletion protoc-gen-buffa-packaging/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ keywords = ["protobuf", "protocol-buffers", "protoc", "plugin", "codegen"]
categories = ["development-tools::build-utils", "command-line-utilities"]

[dependencies]
buffa = { path = "../buffa", version = "0.5.0" }
buffa = { path = "../buffa", version = "0.5.1" }
buffa-codegen = { workspace = true }
2 changes: 1 addition & 1 deletion protoc-gen-buffa/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ keywords = ["protobuf", "protocol-buffers", "protoc", "plugin", "codegen"]
categories = ["development-tools::build-utils", "command-line-utilities"]

[dependencies]
buffa = { path = "../buffa", version = "0.5.0" }
buffa = { path = "../buffa", version = "0.5.1" }
buffa-codegen = { workspace = true }
Loading