# 使用 Homebrew 安装 buffa

查看 buffa 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:buffa
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install buffa
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:buffa
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/buffa>
- **版本:** 0.8.1
- **来源摘要:** Pure-Rust Protocol Buffers implementation with editions support
- **主页:** <https://github.com/anthropics/buffa>
- **仓库:** <https://github.com/anthropics/buffa>
- **上游文档:** <https://github.com/anthropics/buffa/blob/main/docs/guide.md>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/anthropics/buffa/archive/refs/tags/v0.8.1.tar.gz>
- **最后更新:** 2026-07-01T17:59:46Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- protoc-gen-buffa (cli)
- protoc-gen-buffa-packaging (cli)
- protoc-gen-buffa (别名)
- protoc-gen-buffa-packaging (别名)

## 依赖

- protobuf

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.8.1
- 管理器更新时间: 2026-07-01
- 本地数据: OK
- 上游仓库: https://github.com/anthropics/buffa
- 检测到的最新版本: v0.8.1 (当前)
## 项目历史与用法

buffa is Anthropic's pure-Rust Protocol Buffers implementation with first-class support for protobuf editions, distributed as Rust crates and protoc-compatible generator binaries.

### 项目历史

The project was created to fill a Rust ecosystem gap identified in its README: an actively maintained, pure-Rust Protobuf library with editions support. Its design treats editions as the main abstraction while keeping proto2 and proto3 as feature presets inside that model.

buffa is organized as a small workspace of runtime, descriptor, code generation, build-helper, and protoc-plugin crates, with `protoc-gen-buffa` also published as a Buf remote plugin.

### 采用历史

buffa is young and pre-1.0, so its public adoption history is still mostly package-manager and Rust-crate availability rather than broad ecosystem standardization. The Homebrew formula packages the generator binaries for users who want CLI/plugin installation outside Cargo.

Its migration guides from `prost` and `protobuf` position it for Rust teams already invested in Protobuf who want editions support, zero-copy view types, reflection, `no_std + alloc`, or a different generated-code API.

### 使用方式

Recommended use is through `buf generate` with the `buf.build/anthropics/buffa` remote plugin, or locally through `protoc-gen-buffa` and `protoc-gen-buffa-packaging`. Rust build-script users can also use `buffa-build` from `build.rs` when `protoc` is available.

The generated API emphasizes owned and borrowed message representations, unknown-field preservation, binary/JSON/text encodings, runtime reflection, and compatibility with protobuf editions.

### 为什么软件包爱好者会关心

buffa is interesting as a Rust Protobuf stack that integrates with both Cargo and Buf's remote-plugin packaging model. It shows the newer pattern where code generators can be consumed through the Buf Schema Registry instead of every developer installing matching local binaries.

For package maintainers, the notable surface is split between library crates and CLI plugin executables, which makes it both a Rust dependency and a system package.

### 时间线

- 2020s: Protobuf editions created a new compatibility target for Protobuf implementations.
- 2025: buffa pre-1.0 tags appeared publicly and the README documented semver expectations for 0.x releases.
- 2025: Homebrew packaged the `protoc-gen-buffa` and `protoc-gen-buffa-packaging` executables.

### Related projects

- `prost` and `protobuf` are the Rust Protobuf implementations explicitly covered by buffa migration guides.
- Buf is the recommended generation path in the README through the `buf.build/anthropics/buffa` remote plugin.
- `protoc` remains supported through local protoc generator binaries and `buffa-build`.

### 来源

- <https://github.com/anthropics/buffa>
- <https://github.com/anthropics/buffa/blob/main/docs/guide.md>
- <https://github.com/anthropics/buffa/blob/main/docs/migration-from-prost.md>
- <https://github.com/anthropics/buffa/blob/main/docs/migration-from-protobuf.md>
- source_facts.package-manager


## 安全说明

没有找到 buffa 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** buffa
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [MCP tool packages](https://www.automicvault.com/zh-hans/pkg/mcp-tools/) - Matched curated package taxonomy and local package facts.
- [protobuf](https://www.automicvault.com/zh-hans/pkg/brew/protobuf/) - Runtime dependency declared by Homebrew.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [protoc-gen-go](https://www.automicvault.com/zh-hans/pkg/brew/protoc-gen-go/) - Local package facts share a topical domain. Shared terms: buffers, gen, protobuf, protoc, protocol.
- [protobuf-c](https://www.automicvault.com/zh-hans/pkg/brew/protobuf-c/) - Local package facts share a topical domain. Shared terms: buffers, gen, protobuf, protoc, protocol.
- [protoc-gen-doc](https://www.automicvault.com/zh-hans/pkg/brew/protoc-gen-doc/) - Local package facts share a topical domain. Shared terms: buffers, gen, protobuf, protoc, protocol.

## Combined YAML source

View the package source record on GitHub. [combined/buffa.yml](https://github.com/automic-vault/db/blob/main/combined/buffa.yml)


## 来源

- Nucleus package database
- package-page enrichment
- curated package history
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
