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/connect-rust/v0.5.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
17 changes: 17 additions & 0 deletions plugins/anthropics/connect-rust/v0.5.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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
# The protoc-gen-connect-rust binary is a [[bin]] target in the
# connectrpc-codegen crate. cargo install compiles it by crate name.
RUN --mount=type=cache,target=/usr/local/cargo/registry,sharing=locked --mount=type=cache,target=/root/target \
cargo install connectrpc-codegen --version 0.5.0 --locked --root /app

FROM gcr.io/distroless/static-debian13:latest@sha256:3592aa8171c77482f62bbc4164e6a2d141c6122554ace66e5cc910cadb961ff0 AS base

FROM scratch
COPY --link --from=base / /
COPY --link --from=builder /app/bin/protoc-gen-connect-rust /protoc-gen-connect-rust
USER nobody
ENTRYPOINT ["/protoc-gen-connect-rust"]
55 changes: 55 additions & 0 deletions plugins/anthropics/connect-rust/v0.5.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
version: v1
name: buf.build/anthropics/connect-rust
plugin_version: v0.5.0
source_url: https://github.com/anthropics/connect-rust
description: Generates ConnectRPC service traits, typed clients, and monomorphic dispatchers for Rust. Compatible with the Connect, gRPC, and gRPC-Web protocols. Passes the full ConnectRPC conformance suite.
deps:
- plugin: buf.build/anthropics/buffa:v0.6.0
output_languages:
- rust
spdx_license_id: Apache-2.0
license_url: https://github.com/anthropics/connect-rust/blob/v0.5.0/LICENSE
registry:
cargo:
rust_version: "1.88"
deps:
# ConnectRPC runtime: Router, Context, ConnectError, client transports.
# https://github.com/anthropics/connect-rust/blob/v0.5.0/connectrpc/Cargo.toml
- name: "connectrpc"
req: "0.5.0"
default_features: true
# Generated service stubs use buffa::Message, buffa::view::OwnedView,
# buffa::bytes::Bytes directly. Message types live in the buffa SDK
# crate (via the plugin dep above); this dep is for the runtime API.
- name: "buffa"
req: "0.6.0"
default_features: true
# Well-known types. Service stubs whose request/response types are
# WKTs (e.g. google.longrunning.Operations) reference them as
# `::buffa_types::google::protobuf::...`, mirroring buffa-codegen's
# extern_path mapping for `.google.protobuf`. Must be a direct dep
# so the `::buffa_types` path resolves in the generated crate.
- name: "buffa-types"
req: "0.6.0"
default_features: true
features:
- json
# Streaming method signatures use futures::Stream.
- name: "futures"
req: "0.3"
default_features: true
# Client transport bounds reference http_body::Body.
- name: "http-body"
req: "1"
default_features: true
# The plugin accepts `extern_path=.=<rust_path>` (or the shorthand
# `buffa_module=<rust_path>`) to tell it where the buffa-generated message
# types live. BSR should inject this based on the buffa dep's SDK crate
# name, same as tonic receives extern_path for its prost dep. Leaving
# it out here; please advise if an explicit entry is needed.
opts:
# Emit one `<dotted.package>.rs` per proto package, mirroring the
# buffa plugin's `file_per_package=true` opt. Matches the
# prost/tonic filename convention the BSR Rust SDK lib.rs
# synthesis expects.
- file_per_package
3 changes: 3 additions & 0 deletions plugins/grpc/swift-protobuf/v2.4.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!Dockerfile
!Package.resolved
18 changes: 18 additions & 0 deletions plugins/grpc/swift-protobuf/v2.4.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# syntax=docker/dockerfile:1.23
FROM swift:6.3.2-bookworm@sha256:40918972df286d15aa47f4686c98a211f0a6152ca1d48b3dbccd6f56a3c34815 AS build

RUN apt-get update \
&& apt-get install -y unzip
WORKDIR /app
RUN git clone --depth 1 --branch 2.4.0 https://github.com/grpc/grpc-swift-protobuf --recursive
WORKDIR /app/grpc-swift-protobuf
COPY --link Package.resolved .
RUN swift build -c release --static-swift-stdlib --product protoc-gen-grpc-swift-2 -Xlinker -s --force-resolved-versions

FROM gcr.io/distroless/cc-debian13:latest@sha256:8b5d1db6d2253036a53cb8362d3e3fa82a7caf84c247772c46a023166c64e977 AS base

FROM scratch
COPY --link --from=base / /
COPY --link --from=build /app/grpc-swift-protobuf/.build/release/protoc-gen-grpc-swift-2 .
USER nobody
ENTRYPOINT [ "/protoc-gen-grpc-swift-2" ]
33 changes: 33 additions & 0 deletions plugins/grpc/swift-protobuf/v2.4.0/Package.resolved

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

30 changes: 30 additions & 0 deletions plugins/grpc/swift-protobuf/v2.4.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: v1
name: buf.build/grpc/swift-protobuf
plugin_version: v2.4.0
source_url: https://github.com/grpc/grpc-swift-protobuf
description: Generates Swift client and server stubs for the gRPC framework.
deps:
- plugin: buf.build/apple/swift:v1.38.0
output_languages:
- swift
registry:
swift:
deps:
- source: https://github.com/grpc/grpc-swift-protobuf.git
package: grpc-swift-protobuf
version: 2.4.0
products:
- GRPCProtobuf
platforms:
macos: v15
ios: v18
tvos: v18
watchos: v11
swift_versions:
- .v6
opts:
- Visibility=Public
- FileNaming=PathToUnderscores
spdx_license_id: Apache-2.0
license_url: https://github.com/grpc/grpc-swift-protobuf/blob/2.4.0/LICENSE
integration_guide_url: https://swiftpackageindex.com/grpc/grpc-swift-protobuf/2.4.0/documentation/grpcprotobuf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:mFkXt5wOM/CcvFH4VTw7NQp9Obws7Etqrxd3vp8A5LU=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:EpPCbq9Lb12JwHApK7tbAFbABQmCKVhyPh0kxCViZhY=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:H1L2+dsAzxe/ws+/A+IrA6i90XNPvCUzQ2XzLsRGfWI=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:0NpEEqxBXr2NItKYA/fHLsnwN1eqJFEVakuZ2Wao9Yk=
Loading