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
2 changes: 2 additions & 0 deletions plugins/anthropics/buffa/v0.6.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
15 changes: 15 additions & 0 deletions plugins/anthropics/buffa/v0.6.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.23
FROM rust:1.95.0-alpine3.23@sha256:606fd313a0f49743ee2a7bd49a0914bab7deedb12791f3a846a34a4711db7ed2 AS builder
RUN apk add --no-cache musl-dev
WORKDIR /app
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
RUN --mount=type=cache,target=/usr/local/cargo/registry,sharing=locked --mount=type=cache,target=/root/target \
cargo install protoc-gen-buffa --version 0.6.0 --locked --root /app

FROM gcr.io/distroless/static-debian13:latest@sha256:47b2d72ff90843eb8a768b5c2f89b40741843b639d065b9b937b07cd59b479c6 AS base

FROM scratch
COPY --link --from=base / /
COPY --link --from=builder /app/bin/protoc-gen-buffa /protoc-gen-buffa
USER nobody
ENTRYPOINT ["/protoc-gen-buffa"]
51 changes: 51 additions & 0 deletions plugins/anthropics/buffa/v0.6.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
version: v1
name: buf.build/anthropics/buffa
plugin_version: v0.6.0
source_url: https://github.com/anthropics/buffa
description: Generates Rust message types with buffa, a zero-copy Protobuf implementation with editions support and no_std compatibility.
output_languages:
- rust
spdx_license_id: Apache-2.0
license_url: https://github.com/anthropics/buffa/blob/v0.6.0/LICENSE
registry:
cargo:
rust_version: "1.85"
deps:
# Runtime: wire format, Message trait, view types, JSON helpers.
# https://github.com/anthropics/buffa/blob/v0.6.0/buffa/Cargo.toml
- name: "buffa"
req: "0.6.0"
default_features: true
features:
- json
# Well-known types (Timestamp, Duration, Any, Struct, etc.).
# Generated code references these via the auto-injected
# extern_path mapping `.google.protobuf` -> `::buffa_types::google::protobuf`.
- name: "buffa-types"
req: "0.6.0"
default_features: true
features:
- json
- name: "buffa-descriptor"
req: "0.6.0"
default_features: true
features:
- json
- views
# Generated code derives `::serde::Serialize` / `::serde::Deserialize`
# directly when json=true, so serde must be a direct dep.
- name: "serde"
req: "1"
default_features: true
features:
- derive
opts:
# Enable serde derives + proto3 JSON mapping helpers. Required for
# downstream plugins that need the Connect protocol's JSON codec.
- json=true
# Zero-copy view types. Default, but explicit for clarity.
- views=true
# Emit one `<dotted.package>.rs` per proto package instead of one
# file per proto file. Matches the prost/tonic filename convention
# the BSR Rust SDK lib.rs synthesis expects.
- file_per_package=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
16 changes: 16 additions & 0 deletions plugins/community/mercari-grpc-federation/v1.26.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# syntax=docker/dockerfile:1.23
FROM --platform=$BUILDPLATFORM golang:1.26.3-trixie@sha256:a085df697019cb63b40a70f6a92b948f7dc9df96dfcb2c20ba6eed25ce28f5b3 AS build

ARG TARGETOS TARGETARCH
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH

RUN --mount=type=cache,target=/go/pkg/mod \
go install -ldflags="-s -w" -trimpath github.com/mercari/grpc-federation/cmd/protoc-gen-grpc-federation@v1.26.0 \
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-grpc-federation /go/bin/protoc-gen-grpc-federation || true

FROM scratch
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-grpc-federation .
ENV GOROOT /
USER nobody
ENTRYPOINT [ "/protoc-gen-grpc-federation" ]
10 changes: 10 additions & 0 deletions plugins/community/mercari-grpc-federation/v1.26.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1
name: buf.build/community/mercari-grpc-federation
plugin_version: v1.26.0
source_url: https://github.com/mercari/grpc-federation
integration_guide_url: https://github.com/mercari/grpc-federation/blob/main/docs/getting_started.md
description: Generates a gRPC server by writing a custom option in Protocol Buffers
output_languages:
- go
spdx_license_id: MIT
license_url: https://github.com/mercari/grpc-federation/blob/v1.26.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:04EqbwhNoNF3pj4J9IZNBlPY8ZeNl3zNtTqa4No7nz0=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:KGEgYK5Tlu8VwV685pcPRF/lqSZaT3VMc6KEzl04xaw=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:sKQ69rbMl7tqnoqUK0HZ3YUzbL78WbLJUHNefMV8Z4U=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Loading