|
| 1 | +version: v1 |
| 2 | +name: buf.build/anthropics/connect-rust |
| 3 | +plugin_version: v0.6.1 |
| 4 | +source_url: https://github.com/anthropics/connect-rust |
| 5 | +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. |
| 6 | +deps: |
| 7 | + - plugin: buf.build/anthropics/buffa:v0.7.0 |
| 8 | +output_languages: |
| 9 | + - rust |
| 10 | +spdx_license_id: Apache-2.0 |
| 11 | +license_url: https://github.com/anthropics/connect-rust/blob/v0.6.1/LICENSE |
| 12 | +registry: |
| 13 | + cargo: |
| 14 | + rust_version: "1.88" |
| 15 | + deps: |
| 16 | + # ConnectRPC runtime: Router, Context, ConnectError, client transports. |
| 17 | + # https://github.com/anthropics/connect-rust/blob/v0.6.1/connectrpc/Cargo.toml |
| 18 | + - name: "connectrpc" |
| 19 | + req: "0.6.1" |
| 20 | + default_features: true |
| 21 | + # Generated service stubs use buffa::Message, buffa::view::OwnedView, |
| 22 | + # buffa::bytes::Bytes directly. Message types live in the buffa SDK |
| 23 | + # crate (via the plugin dep above); this dep is for the runtime API. |
| 24 | + - name: "buffa" |
| 25 | + req: "0.6.1" |
| 26 | + default_features: true |
| 27 | + # Well-known types. Service stubs whose request/response types are |
| 28 | + # WKTs (e.g. google.longrunning.Operations) reference them as |
| 29 | + # `::buffa_types::google::protobuf::...`, mirroring buffa-codegen's |
| 30 | + # extern_path mapping for `.google.protobuf`. Must be a direct dep |
| 31 | + # so the `::buffa_types` path resolves in the generated crate. |
| 32 | + - name: "buffa-types" |
| 33 | + req: "0.6.1" |
| 34 | + default_features: true |
| 35 | + features: |
| 36 | + - json |
| 37 | + # Streaming method signatures use futures::Stream. |
| 38 | + - name: "futures" |
| 39 | + req: "0.3" |
| 40 | + default_features: true |
| 41 | + # Client transport bounds reference http_body::Body. |
| 42 | + - name: "http-body" |
| 43 | + req: "1" |
| 44 | + default_features: true |
| 45 | + # The plugin accepts `extern_path=.=<rust_path>` (or the shorthand |
| 46 | + # `buffa_module=<rust_path>`) to tell it where the buffa-generated message |
| 47 | + # types live. BSR should inject this based on the buffa dep's SDK crate |
| 48 | + # name, same as tonic receives extern_path for its prost dep. Leaving |
| 49 | + # it out here; please advise if an explicit entry is needed. |
| 50 | + opts: |
| 51 | + # Emit one `<dotted.package>.rs` per proto package, mirroring the |
| 52 | + # buffa plugin's `file_per_package=true` opt. Matches the |
| 53 | + # prost/tonic filename convention the BSR Rust SDK lib.rs |
| 54 | + # synthesis expects. |
| 55 | + - file_per_package |
0 commit comments