Skip to content

Commit

Permalink
Add connect-dart plugin (#1638)
Browse files Browse the repository at this point in the history
Add connect-dart plugin

---------
Co-authored-by: Michael Fridman <[email protected]>
Signed-off-by: Sri Krishna Paritala <[email protected]>
  • Loading branch information
srikrsna-buf authored Dec 20, 2024
1 parent 776ca2f commit de03869
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/connectrpc/dart/source.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source:
github:
owner: connectrpc
repository: connect-dart
2 changes: 2 additions & 0 deletions plugins/connectrpc/dart/v0.1.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/dart/v0.1.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.4
FROM dart:3.5.4-sdk AS build

WORKDIR /build
RUN git clone --depth=1 --branch v0.1.0 https://github.com/connectrpc/connect-dart.git
RUN cd connect-dart/packages/connect \
&& dart pub get \
&& dart compile exe bin/protoc-gen-connect-dart.dart -o /build/protoc-gen-connect-dart

FROM scratch
COPY --from=build --link /etc/passwd /etc/passwd
COPY --from=build --link /runtime/ /
COPY --from=build --link /build/protoc-gen-connect-dart .
USER nobody
ENTRYPOINT [ "/protoc-gen-connect-dart" ]
12 changes: 12 additions & 0 deletions plugins/connectrpc/dart/v0.1.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: v1
name: buf.build/connectrpc/dart
plugin_version: v0.1.0
source_url: https://github.com/connectrpc/connect-dart
integration_guide_url: https://connectrpc.com/docs/dart/getting-started
description: Generates client stubs for connectrpc. Compatible with the gRPC, gRPC-Web, and Connect RPC protocols.
deps:
- plugin: buf.build/protocolbuffers/dart:v21.1.2
output_languages:
- dart
spdx_license_id: Apache-2.0
license_url: https://github.com/connectrpc/connect-dart/blob/v0.1.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:2oeeATT8L4LABkOyY23ovHmaXCTA9oMjOMxyEKiCy/Q=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:MKDLb8WHr7/igQ9YQG0YlwDcAL8aLo+/szO5QdLrY5A=

0 comments on commit de03869

Please sign in to comment.