Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

buffrs

> 包管理
Open source

Modern protobuf package management

374 stars0 likes2 views
WebsiteGitHub

About

Modern protobuf package management

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 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustdistributionpackage-managerprotobufprotocol-buffers

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category包管理
PricingOpen source

> Related tools

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