|
| 1 | +version: v1 |
| 2 | +name: buf.build/anthropics/buffa |
| 3 | +plugin_version: v0.8.0 |
| 4 | +source_url: https://github.com/anthropics/buffa |
| 5 | +description: Generates Rust message types with buffa, a zero-copy Protobuf implementation with editions support and no_std compatibility. |
| 6 | +output_languages: |
| 7 | + - rust |
| 8 | +spdx_license_id: Apache-2.0 |
| 9 | +license_url: https://github.com/anthropics/buffa/blob/v0.8.0/LICENSE |
| 10 | +registry: |
| 11 | + cargo: |
| 12 | + rust_version: "1.75" # https://github.com/anthropics/buffa/blob/v0.8.0/Cargo.toml#L35 |
| 13 | + deps: |
| 14 | + # Runtime: wire format, Message trait, view types, JSON helpers. |
| 15 | + # https://github.com/anthropics/buffa/blob/v0.8.0/buffa/Cargo.toml |
| 16 | + - name: "buffa" |
| 17 | + req: "0.8.0" |
| 18 | + default_features: true |
| 19 | + features: |
| 20 | + - json |
| 21 | + - text |
| 22 | + # Well-known types (Timestamp, Duration, Any, Struct, etc.). |
| 23 | + # Generated code references these via the auto-injected |
| 24 | + # extern_path mapping `.google.protobuf` -> `::buffa_types::google::protobuf`. |
| 25 | + - name: "buffa-types" |
| 26 | + req: "0.8.0" |
| 27 | + default_features: true |
| 28 | + features: |
| 29 | + - json |
| 30 | + - name: "buffa-descriptor" |
| 31 | + req: "0.8.0" |
| 32 | + default_features: true |
| 33 | + features: |
| 34 | + - json |
| 35 | + - views |
| 36 | + - text |
| 37 | + # Generated code derives `::serde::Serialize` / `::serde::Deserialize` |
| 38 | + # directly when json=true, so serde must be a direct dep. |
| 39 | + - name: "serde" |
| 40 | + req: "1" |
| 41 | + default_features: true |
| 42 | + features: |
| 43 | + - derive |
| 44 | + opts: |
| 45 | + # Enable serde derives + proto3 JSON mapping helpers. Required for |
| 46 | + # downstream plugins that need the Connect protocol's JSON codec. |
| 47 | + - json=true |
| 48 | + # Enable textproto encoding/decoding. |
| 49 | + - text=true |
| 50 | + # Zero-copy view types. Default, but explicit for clarity. |
| 51 | + - views=true |
| 52 | + # Emit one `<dotted.package>.rs` per proto package instead of one |
| 53 | + # file per proto file. Matches the prost/tonic filename convention |
| 54 | + # the BSR Rust SDK lib.rs synthesis expects. |
| 55 | + - file_per_package=true |
0 commit comments