现代的 protobuf 包管理
$ cargo install buffrs
$ buffrs login
$ buffrs init --api
$ buffrs add
$ buffrs installUseful resources:
buffrs helppath = "../my-lib" references, automatically resolved recursively and published seamlesslySee the Buffrs Book for comprehensive documentation.
…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.
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.
buffrs-registry, a self-hostable, S3-based registry.暂无开放 Issues,或尚未同步最近议题。