百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
B

buffrs

> 包管理
开源

现代的 protobuf 包管理

374 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

现代的 protobuf 包管理

Quickstart

$ cargo install buffrs
$ buffrs login
$ buffrs init --api
$ buffrs add 
$ buffrs install

Useful resources:

  • The Buffrs Book
  • Crate Documentation
  • Announcement Post
  • buffrs help

Features

  • Local dependencies: Develop with path = "../my-lib" references, automatically resolved recursively and published seamlessly
  • Workspaces: Manage multiple packages in a single repository with automatic dependency ordering
  • Artifactory integration: Publish to and consume from Artifactory registries
  • Lock files: Reproducible builds with cryptographic checksums

See the Buffrs Book for comprehensive documentation.

Synopsis

…

Motivation

Protocol buffers are agreeably a great way to define fully typed, language-independent API schemas with strong backward compatibility guarantees. They offer a neat experience for API consumers through generated bindings. The biggest problem associated with Protocol Buffers is their distribution.

  • How do you consume the raw protobuf files of one project reliably in another one?
  • How do you prevent transitive dependencies?
  • How do you publish to a unified registry with package format across languages?

One obvious way is to generate code bindings in the repository containing the Protocol Buffers and publish the generated bindings, but this is associated with problems such as language lock-in. You need to proactively publish bindings for any possible language your API consumers may use. Also, in strongly typed languages like Rust, it is hard to extend the behavior of generated code in consuming projects due to the orphan rule. Summing up: this approach works somehow but hurts frequently.

This is where Buffrs comes in: Buffrs solves this by defining a strict, package-based distribution mechanism and treats Protocol Buffers as a first-class citizen.

This allows you to publish Buffrs packages to a registry and properly depend on them in other projects.

Roadmap

  • Support project manifests and dependency declaration
  • Support package distribution via Artifactory
  • Support tonic as code generation backend
  • Support protoc as code generation backend
  • Implement buffrs-registry, a self-hostable, S3-based registry.
  • Supply tooling around Protocol Buffers, such as bindgen, linting, validation and formatting.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustdistributionpackage-managerprotobufprotocol-buffers

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类包管理
定价开源

> 相关工具

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image