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/connectrpc/rust/v0.9.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
15 changes: 15 additions & 0 deletions plugins/connectrpc/rust/v0.9.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.26
FROM rust:1.98.0-alpine3.24@sha256:a10e64dd139b7387337c7fbe8aca31b959b57b2fd4c8ae20a02cf1d6ea424dce 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 connectrpc-codegen --version 0.9.0 --locked --root /app

FROM gcr.io/distroless/static-debian13:latest@sha256:f2ea2709ac8db56323cbd7d014277f32cb572d9ea124b0076f7aafe5980678fe 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"]
32 changes: 32 additions & 0 deletions plugins/connectrpc/rust/v0.9.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: v1
name: buf.build/connectrpc/rust
plugin_version: v0.9.0
source_url: https://github.com/connectrpc/connect-rust
description: Generates ConnectRPC service traits, typed clients, and monomorphic dispatchers for Rust. Compatible with the Connect, gRPC, and gRPC-Web protocols.
deps:
- plugin: buf.build/anthropics/buffa:v0.9.1
output_languages:
- rust
spdx_license_id: Apache-2.0
license_url: https://github.com/connectrpc/connect-rust/blob/v0.9.0/LICENSE
registry:
cargo:
rust_version: "1.88"
deps:
- name: "connectrpc"
req: "0.9.0"
default_features: true
- name: "buffa"
req: "0.9.1"
default_features: true
- name: "buffa-types"
req: "0.9.1"
default_features: true
features:
- json
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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:Pg/YmPbnOx8ilCyP/Tj5qcppIjCgqlhbG8Zke1WHlUw=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:i18GG0ChtRbAf0tdiTL7bFGVUK37jjbEIPpdEKW1TDc=
Loading