diff --git a/connectrpc-codegen/Dockerfile b/connectrpc-codegen/Dockerfile deleted file mode 100644 index 43f9870..0000000 --- a/connectrpc-codegen/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -# syntax=docker/dockerfile:1.12 -FROM --platform=$BUILDPLATFORM rust:1.84-bookworm AS build - -# Install musl toolchain for static linking -RUN apt-get update && apt-get install -y musl-tools && rm -rf /var/lib/apt/lists/* -RUN rustup target add x86_64-unknown-linux-musl - -# Copy workspace source -WORKDIR /src -COPY . . - -# Build the plugin binary (statically linked via musl) -RUN --mount=type=cache,target=/usr/local/cargo/registry \ - --mount=type=cache,target=/src/target \ - cargo build --release --target x86_64-unknown-linux-musl -p connectrpc-codegen --bin protoc-gen-connect-rust \ - && cp /src/target/x86_64-unknown-linux-musl/release/protoc-gen-connect-rust /usr/local/bin/ - -FROM scratch -COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd -COPY --from=build --link /usr/local/bin/protoc-gen-connect-rust / -USER nobody -ENTRYPOINT [ "/protoc-gen-connect-rust" ] diff --git a/connectrpc-codegen/buf.plugin.yaml b/connectrpc-codegen/buf.plugin.yaml deleted file mode 100644 index e436ced..0000000 --- a/connectrpc-codegen/buf.plugin.yaml +++ /dev/null @@ -1,31 +0,0 @@ -version: v1 -name: buf.build/connectrpc/rust -plugin_version: v0.1.0 -source_url: https://github.com/anthropics/connect-rust -description: Generates ConnectRPC service traits, extension traits, and typed clients for Rust. Compatible with the Connect, gRPC, and gRPC-Web protocols. -output_languages: - - rust -spdx_license_id: Apache-2.0 -license_url: https://github.com/anthropics/connect-rust/blob/main/LICENSE -registry: - cargo: - rust_version: "1.85" - deps: - - name: connectrpc - version_requirement: "0.1.0" - - name: buffa - version_requirement: "0.1" - features: - - serde - - name: buffa-types - version_requirement: "0.1" - features: - - serde - - name: serde - version_requirement: "1" - features: - - derive - - name: futures - version_requirement: "0.3" - - name: http-body - version_requirement: "1"